mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-27 22:42:29 +00:00
Accept constant definitions in structs.
- We already need to handle them for enums, so there's really nothing to be gained by not accepting constant definitions directly.
This commit is contained in:
parent
8c027aef8b
commit
4a295dfa3d
1 changed files with 1 additions and 0 deletions
|
@ -262,6 +262,7 @@ struct_body(X) ::= struct_member(A) struct_body(B). { X = A; A->AppendSibling(B
|
|||
|
||||
struct_member(X) ::= declarator_no_fun(A). { X = A; }
|
||||
struct_member(X) ::= enum_def(A). { X = A; }
|
||||
struct_member(X) ::= const_def(A). { X = A; }
|
||||
|
||||
/*----- Constant Definition ------*/
|
||||
/* Like UnrealScript, a constant's type is implied by its value's type. */
|
||||
|
|
Loading…
Reference in a new issue