From 861ab932747aab136d5b245048c0d0e761dd5e7b Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 29 Jan 2011 09:56:08 +0900 Subject: [PATCH] Don't type-check against the wrong type :P --- tools/qfcc/source/method.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/qfcc/source/method.c b/tools/qfcc/source/method.c index ab7c41792..e7bea93e3 100644 --- a/tools/qfcc/source/method.c +++ b/tools/qfcc/source/method.c @@ -414,9 +414,13 @@ emit_methods_list_item (def_t *def, void *data, int index) method_t *m; pr_method_t *meth; - if (def->type != &type_method_description) - internal_error (0, "%s: expected method_descripting def", +#if 0 + //FIXME the type is dynamic, so need a way to pass it before it cn be + //checked + if (def->type != &XXX) + internal_error (0, "%s: expected XXX def", __FUNCTION__); +#endif if (index < 0 || index >= methods->count) internal_error (0, "%s: out of bounds index: %d %d", __FUNCTION__, index, methods->count);