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:
Bill Currie 2012-11-13 21:45:54 +09:00
parent d782622e74
commit 5b7b49b100

View file

@ -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