mirror of
https://github.com/Ed94/HandmadeHero.git
synced 2024-11-12 20:44:52 -08:00
Ed_
973936ac82
Going to have to fork win32 modular headers lib, they didn't do handle declares proper. So far so good. Made a funny looking gradient
15 lines
483 B
C
15 lines
483 B
C
// Keywords
|
|
|
|
#define global static // Global variables
|
|
#define internal static // Internal linkage
|
|
#define local_persist static // Local Persisting variables
|
|
|
|
#define api_c extern "C"
|
|
|
|
// Casting
|
|
|
|
#define ccast( Type, Value ) ( * const_cast< Type* >( & (Value) ) )
|
|
#define pcast( Type, Value ) ( * reinterpret_cast< Type* >( & ( Value ) ) )
|
|
#define rcast( Type, Value ) reinterpret_cast< Type >( Value )
|
|
#define scast( Type, Value ) static_cast< Type >( Value )
|