|
checkasm 1.0.1
Assembly testing and benchmarking framework
|
Platform and compiler attribute macros.
This header defines platform-specific compiler attributes used throughout the checkasm API for features like printf format checking and symbol visibility.
Go to the source code of this file.
Macros | |
| #define | CHECKASM_PRINTF(fmt, attr) |
| Printf-style format string checking attribute. | |
| #define | CHECKASM_API |
| Symbol visibility attribute for public API functions. | |
| #define CHECKASM_API |
Symbol visibility attribute for public API functions.
Marks functions and variables as part of the public checkasm API. This ensures proper symbol export/import behavior across different platforms and build configurations.
| #define CHECKASM_PRINTF | ( | fmt, | |
| attr ) |
Printf-style format string checking attribute.
Enables compile-time checking of printf-style format strings and arguments when supported by the compiler. This helps catch format string errors at compile time rather than runtime.
| fmt | Position of the format string parameter (1-indexed) |
| attr | Position of the first variadic argument (1-indexed) |