mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-26 22:53:16 -04:00
cppparser: Allow referencing enumerant within enum scope
This commit is contained in:
parent
f7f3179a89
commit
bc039a0476
File diff suppressed because it is too large
Load Diff
@ -2971,8 +2971,17 @@ base_specification:
|
||||
;
|
||||
|
||||
enum:
|
||||
enum_decl '{' enum_body '}'
|
||||
enum_decl
|
||||
{
|
||||
if (current_enum->_scope != nullptr) {
|
||||
push_scope(current_enum->_scope);
|
||||
}
|
||||
}
|
||||
'{' enum_body '}'
|
||||
{
|
||||
if (current_enum->_scope != nullptr) {
|
||||
pop_scope();
|
||||
}
|
||||
$$ = current_enum;
|
||||
current_enum = nullptr;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user