Loading...
Searching...
No Matches
Go to the documentation of this file. 1#if !defined(ae2f_Macro_Cast_h)
5#define ae2f_Macro_Cast_h
10#define ae2f_Macro_Cast_Console_Clear_Cheat "\033[2J\033[H"
14#define ae2f_Macro_Cast_Merge(...) __VA_ARGS__
19#if defined(__cplusplus)
25#define ae2f_add_when_cxx(...) __VA_ARGS__
29#define ae2f_add_when_c(...)
35#define ae2f_add_when_cxx(...)
39#define ae2f_add_when_c(...) __VA_ARGS__
45#define ae2f_record_make(type, ...) (ae2f_add_when_c((type) { __VA_ARGS__ }) ae2f_add_when_cxx(type{ __VA_ARGS__ }))
49#define ae2f_static_cast(t, v) ae2f_add_when_c(((t)(v))) ae2f_add_when_cxx(static_cast<t>(v))
53#define ae2f_dynamic_cast(t, v) ae2f_add_when_c(((t)(v))) ae2f_add_when_cxx(dynamic_cast<t>(v))
57#define ae2f_reinterpret_cast(t, v) ae2f_add_when_c(((t)(v))) ae2f_add_when_cxx(reinterpret_cast<t>(v))
61#define ae2f_const_cast(t, v) ae2f_add_when_c(((t)(v))) ae2f_add_when_cxx(const_cast<t>(v))
74#define ae2f_union_cast(tThen, tNow, v) ae2f_add_when_c((union { tThen a; tNow b; }) { v }) ae2f_add_when_cxx(ae2f_union_caster<tThen, tNow>{ v }) .b
81#define ae2f_struct ae2f_add_when_c(struct)
85#define ae2f_extern ae2f_add_when_c(extern) ae2f_add_when_cxx(extern "C")
89#define ae2f_class ae2f_add_when_c(struct) ae2f_add_when_cxx(class)
93#define ae2f_var ae2f_add_when_cxx(extern "C")
97#define ae2f_fdef(rtn_t, name, ...) rtn_t (*name)(__VA_ARGS__)