Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/BLI_utildefines.h
| Show First 20 Lines • Show All 806 Lines • ▼ Show 20 Lines | # define ENUM_OPERATORS(_enum_type, _max_enum_value) \ | ||||
| } \ | } \ | ||||
| } /* extern "C++" */ | } /* extern "C++" */ | ||||
| #else | #else | ||||
| /* Output nothing. */ | /* Output nothing. */ | ||||
| # define ENUM_OPERATORS(_type, _max) | # define ENUM_OPERATORS(_type, _max) | ||||
| #endif | #endif | ||||
| /** | |||||
| * Utility so function declarations in C headers can use C++ default arguments. The default is then | |||||
| * available when included in a C++ file, otherwise the argument has to be set explicitly. | |||||
| */ | |||||
| #ifdef __cplusplus | |||||
| # define CPP_ARG_DEFAULT(default_value) = default_value | |||||
| #else | |||||
| # define CPP_ARG_DEFAULT(default_value) | |||||
| #endif | |||||
| /** \} */ | /** \} */ | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name Misc Macros | /** \name Misc Macros | ||||
| * \{ */ | * \{ */ | ||||
| /** Useful for debugging. */ | /** Useful for debugging. */ | ||||
| #define AT __FILE__ ":" STRINGIFY(__LINE__) | #define AT __FILE__ ":" STRINGIFY(__LINE__) | ||||
| Show All 20 Lines | |||||