From 5b7b49b1005d1485e647fb5967f2b7f8fff30532 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 13 Nov 2012 21:45:54 +0900 Subject: [PATCH] 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. --- tools/qfcc/include/obj_file.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/qfcc/include/obj_file.h b/tools/qfcc/include/obj_file.h index c7126a67f..f45cd8388 100644 --- a/tools/qfcc/include/obj_file.h +++ b/tools/qfcc/include/obj_file.h @@ -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