From 2e8c18f8b60d7a1a43fc2dfd120673a719aa64ec Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 17 May 2002 18:46:11 +0000 Subject: [PATCH] handle unimplemented classes a little better (will do for now till I sort out some sort of resolution for them) --- tools/qfcc/source/class.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/qfcc/source/class.c b/tools/qfcc/source/class.c index 37c5126a4..964ad0059 100644 --- a/tools/qfcc/source/class.c +++ b/tools/qfcc/source/class.c @@ -330,10 +330,14 @@ class_def (class_t *class) def = PR_GetDef (class->type, va ("_OBJ_CLASS_POINTER_%s", class->class_name), 0, &numpr_globals); + if (def->initialized) + return def; if (class->def) { //FIXME need externals? - def->initialized = def->constant = 1; G_INT (def->ofs) = class->def->ofs; + } else { + warning (0, "%s not implemented", class->class_name); } + def->initialized = def->constant = 1; return def; }