mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
make sure a class' super class gets referenced when the class is implemented
to ensure the super class' object file gets linked in when it's in a library
This commit is contained in:
parent
fabaf84745
commit
09ce2b0662
2 changed files with 4 additions and 3 deletions
|
@ -215,8 +215,10 @@ class_begin (class_t *class)
|
|||
class->def->initialized = class->def->constant = 1;
|
||||
cls = &G_STRUCT (pr_class_t, class->def->ofs);
|
||||
EMIT_DEF (cls->class_pointer, meta_def);
|
||||
if (class->super_class)
|
||||
if (class->super_class) {
|
||||
EMIT_STRING (cls->super_class, class->super_class->class_name);
|
||||
class_def (class->super_class, 1);
|
||||
}
|
||||
EMIT_STRING (cls->name, class->class_name);
|
||||
cls->info = _PR_CLS_CLASS;
|
||||
cls->protocols = meta->protocols;
|
||||
|
|
|
@ -191,7 +191,6 @@ process_def (qfo_def_t *def)
|
|||
def->flags = d->flags;
|
||||
Hash_Add (defined_defs, def);
|
||||
} else {
|
||||
if (def->num_relocs)
|
||||
Hash_Add (extern_defs, def);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue