Xonotic
|
Go to the source code of this file.
Macros | |
#define | _strid(s) ITOF(reinterpret_cast(int, s)) |
#define | ARRAY_INDEX(T, arr, idx) (reinterpret_cast(T##_fld, reinterpret_cast(int, arr[0]) + FTOI(idx))) |
#define | FTOI(f) ((f) * INTEGER_ONE) |
#define | ITOF(i) ((i) / INTEGER_ONE) |
#define | reinterpret_cast(T, it) _unsafe_cast_##T(0, it) |
#define | strid(s) stof(sprintf("%i", s)) |
#define | X(T) |
Functions | |
STATIC_INIT (INTEGER_ONE) | |
X (bool) X(int) X(float) X(vector) X(entity) X(string) using rawfunc | |
X (rawfunc) .int _unsafe_fld1 | |
Variables | |
_unsafe_fld2 | |
int | INTEGER_ONE |
#define _strid | ( | s | ) | ITOF(reinterpret_cast(int, s)) |
#define ARRAY_INDEX | ( | T, | |
arr, | |||
idx | |||
) | (reinterpret_cast(T##_fld, reinterpret_cast(int, arr[0]) + FTOI(idx))) |
#define FTOI | ( | f | ) | ((f) * INTEGER_ONE) |
#define ITOF | ( | i | ) | ((i) / INTEGER_ONE) |
#define reinterpret_cast | ( | T, | |
it | |||
) | _unsafe_cast_##T(0, it) |
Definition at line 3 of file unsafe.qh.
Referenced by STATIC_INIT().
#define strid | ( | s | ) | stof(sprintf("%i", s)) |
#define X | ( | T | ) |
STATIC_INIT | ( | INTEGER_ONE | ) |
X | ( | bool | ) |
X | ( | rawfunc | ) |