reldb 0.1.0
Recreational SQLite
Loading...
Searching...
No Matches
macros.h File Reference

Context detection, utilities, and compiler abstractions. More...

#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
Include dependency graph for macros.h:
This graph shows which files directly or indirectly include this file:

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.

Detailed Description

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.

Macro Definition Documentation

◆ BUILD_DEBUG

#define BUILD_DEBUG   1

Definition at line 87 of file macros.h.

◆ BUILD_NAME

#define BUILD_NAME   "Debug"

Definition at line 88 of file macros.h.

◆ C_STANDARD

#define C_STANDARD   89

Definition at line 130 of file macros.h.

◆ C_STANDARD_NAME

#define C_STANDARD_NAME   "C89/Default"

Definition at line 131 of file macros.h.

◆ OS_HEADERS

#define OS_HEADERS

Definition at line 26 of file macros.h.