mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
[qfcc] Catch use of missing superclass interfaces
This commit is contained in:
parent
896c14f33a
commit
efcbbbb641
1 changed files with 4 additions and 0 deletions
|
@ -1630,6 +1630,10 @@ class_with_super
|
||||||
new_class_with_super
|
new_class_with_super
|
||||||
: new_class_name ':' class_name
|
: new_class_name ':' class_name
|
||||||
{
|
{
|
||||||
|
if (!$3->ivars) {
|
||||||
|
error (0, "cannot find interface declaration for `%s', "
|
||||||
|
"superclass of `%s'", $3->name, $1->name);
|
||||||
|
}
|
||||||
$1->super_class = $3;
|
$1->super_class = $3;
|
||||||
$$ = $1;
|
$$ = $1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue