]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/lib/unsafe.qh
Merge branch 'master' into terencehill/menu_hudskin_selector
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / unsafe.qh
1 #ifndef UNSAFE_H
2 #define UNSAFE_H
3
4 #define reinterpret_cast(T, it) _unsafe_cast_##T(0, it)
5 #define X(T) T _unsafe_cast_##T(int dummy, ...) { return ...(0, T); }
6 X(float)
7 X(entity)
8 X(string)
9 typedef float(...) rawfunc;
10 X(rawfunc)
11 #undef X
12
13 #define strid(s) etof(reinterpret_cast(entity, s))
14
15 #endif