Add some quick type access macros.

This commit is contained in:
Bill Currie 2011-03-01 15:18:12 +09:00
parent b584a22d6b
commit 9f126ed805

View file

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