mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
[qfcc] Handle syntax errors in method protos
This commit is contained in:
parent
e3a1413ad3
commit
e1140d476a
1 changed files with 4 additions and 0 deletions
|
@ -2020,6 +2020,10 @@ methodproto
|
|||
$2->instance = 0;
|
||||
$$ = $2;
|
||||
}
|
||||
| '-' error ';'
|
||||
{ $$ = new_method (&type_id, new_param ("", 0, 0), 0); }
|
||||
| '+' error ';'
|
||||
{ $$ = new_method (&type_id, new_param ("", 0, 0), 0); }
|
||||
| '-' methoddecl ';'
|
||||
{
|
||||
$2->instance = 1;
|
||||
|
|
Loading…
Reference in a new issue