include/bedrock/config.h file

Shared-library export and deprecation macros.

Defines

#define BED_API
Marks a function defined in libbedrock.
#define BED_DEPRECATED(msg)
Marks a public function as deprecated.

Define documentation

#define BED_API

Marks a function defined in libbedrock.

__declspec(dllexport) while the shared library is compiled on Windows (BEDROCK_BUILD_SHARED). Empty for the static library, for callers, and on other systems. There is no dllimport: the library exports functions, and one empty macro stays valid for both library types.

Write BED_API before BED_DEPRECATED when a declaration uses both.

#define BED_DEPRECATED(msg)

Marks a public function as deprecated.

msg names the replacement, for example "use arena_reset". Empty when the compiler has no deprecation attribute.