CARLA
 
载入中...
搜索中...
未找到
Platform.h
浏览该文件的文档.
1// Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma
2// de Barcelona (UAB).
3//
4// This work is licensed under the terms of the MIT license.
5// For a copy, see <https://opensource.org/licenses/MIT>.
6
7#pragma once
8
9#if defined(_MSC_VER)
10# define LIBCARLA_FORCEINLINE __forceinline
11# define LIBCARLA_NOINLINE __declspec(noinline)
12#elif defined(__clang__) || defined(__GNUC__)
13# if defined(NDEBUG)
14# define LIBCARLA_FORCEINLINE inline __attribute__((always_inline))
15# else
16# define LIBCARLA_FORCEINLINE inline
17# endif // NDEBUG
18# define LIBCARLA_NOINLINE __attribute__((noinline))
19#else
20# warning Compiler not supported.
21# define LIBCARLA_NOINLINE
22#endif