|
reldb 0.1.0
Recreational SQLite
|
Context detection, utilities, and compiler abstractions. More...
#include <stddef.h>#include <stdint.h>#include <stdio.h>

Go to the source code of this file.
Macros | |
| #define | OS_HEADERS |
| #define | BUILD_DEBUG 1 |
| #define | BUILD_NAME "Debug" |
| #define | C_STANDARD 89 |
| #define | C_STANDARD_NAME "C89/Default" |
| #define | INTERNAL static |
| #define | EXTERNAL extern |
| #define | API_EXPORT |
| #define | API_LOCAL |
| #define | C_LINKAGE_BEGIN |
| #define | C_LINKAGE_END |
| #define | INT_FROM_PTR(ptr) |
| Safely casts a pointer to an integer of pointer size. | |
| #define | PTR_FROM_INT(type, val) |
| Safely casts a pointer-sized integer back to a specific pointer type. | |
| #define | ARRAY_SIZE(arr) |
| Calculates the number of elements in a static array. | |
| #define | MIN(a, b) |
| #define | MAX(a, b) |
| #define | CLAMP(val, min, max) |
| #define | SWAP(type, a, b) |
| #define | debug_break() |
| #define | ASSERT(expr) |
| Standard runtime assertion. Triggers a debug break on failure. | |
| #define | ASSERT_NOT_NULL(ptr) |
| Asserts that a pointer is not NULL. | |
Functions | |
| static void | print_context_info (void) |
| Prints the OS, Architecture, and Compiler to stdout. | |
Context detection, utilities, and compiler abstractions.
A collection of macros for determining the compilation context (OS, compiler, architecture) without relying on external dependencies.
Definition in file macros.h.