OGS
Macros.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
6// A macro preventing inlining of a function, to guide compiler optimizations
7#ifdef _MSC_VER
8#define OGS_NO_INLINE __declspec(noinline)
9#else
10#define OGS_NO_INLINE __attribute__((noinline))
11#endif