mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 01:41:10 +00:00
Add some quick type access macros.
This commit is contained in:
parent
b584a22d6b
commit
9f126ed805
1 changed files with 4 additions and 0 deletions
|
@ -368,10 +368,14 @@ enum {
|
|||
\param t offset to type encoding
|
||||
\return (char *)
|
||||
|
||||
\note Assumes standard space order.
|
||||
\hideinitializer
|
||||
*/
|
||||
#define QFO_TYPESTR(q, t) QFO_GSTRING (q, qfo_type_space, (t) + 2)
|
||||
|
||||
#define QFO_TYPEMETA(q, t) QFO_INT (q, qfo_type_space, (t) + 0)
|
||||
#define QFO_TYPETYPE(q, t) QFO_INT (q, qfo_type_space, (t) + 3)
|
||||
|
||||
/** Access a string global, converting it to a C string.
|
||||
|
||||
\param q pointer to ::qfo_t struct
|
||||
|
|
Loading…
Reference in a new issue