mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-26 14:43:50 -04:00
cppparser: Backport enum scope fix to 1.10
From bc039a0476b31fa624ce548629b7e05cccd2d570
This commit is contained in:
parent
4097dc2e28
commit
8cbf93162a
File diff suppressed because it is too large
Load Diff
@ -2896,8 +2896,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