Inlinable API function macro. More...
Go to the source code of this file.
Macros | |
#define | AST_INLINE_API(hdr, body) hdr; extern inline hdr body |
Inlinable API function macro.
Small API functions that are candidates for inlining need to be specially declared and defined, to ensure that the 'right thing' always happens. For example:
references to a function that cannot be inlined (for any reason that the compiler deems proper) must devolve into an 'extern' reference, instead of 'static', so that multiple copies of the function body are not built in different modules
The AST_INLINE_API macro allows this to happen automatically, when used to define your function. Proper usage is as follows:
Definition in file inline_api.h.
#define AST_INLINE_API | ( | hdr, | |
body | |||
) | hdr; extern inline hdr body |
Definition at line 49 of file inline_api.h.