mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 23:11:38 +00:00
Add a QFO_TYPE macro to get a qfot_type_t pointer.
In the end, it wasn't used, but it could be handy in the future.
This commit is contained in:
parent
d782622e74
commit
5b7b49b100
1 changed files with 3 additions and 0 deletions
|
@ -361,6 +361,9 @@ enum {
|
|||
*/
|
||||
#define QFO_GETSTR(q, s) ((q)->spaces[qfo_strings_space].d.strings + (s))
|
||||
|
||||
#define QFO_TYPE(q, t) ((qfot_type_t *) (char *) \
|
||||
((q)->spaces[qfo_type_space].d.data + (t)))
|
||||
|
||||
/** Retrieve a type string from the object file, converting it to a C string.
|
||||
|
||||
\param q pointer to ::qfo_t struct
|
||||
|
|
Loading…
Reference in a new issue