mirror of
https://github.com/Ed94/gencpp.git
synced 2025-06-16 19:51:47 -07:00
Various fixes and adjustments
* moved constants to components/constants.hpp (adjsuted generators accordingly) * parser accepts include & defineas parameter identifiers (will add more flags for keywords when necessary
This commit is contained in:
@ -2788,10 +2788,10 @@ CodeParams parse_params( bool use_template_capture )
|
||||
}
|
||||
// ( <Macro> <ValueType>
|
||||
|
||||
if ( check( Tok_Identifier ) )
|
||||
if ( check( Tok_Identifier ) || bitfield_is_set(u32, currtok.Flags, TF_Identifier) )
|
||||
{
|
||||
name = currtok;
|
||||
eat( Tok_Identifier );
|
||||
eat( currtok.Type );
|
||||
// ( <Macro> <ValueType> <Name>
|
||||
}
|
||||
|
||||
@ -2899,10 +2899,10 @@ CodeParams parse_params( bool use_template_capture )
|
||||
|
||||
name = NullToken;
|
||||
|
||||
if ( check( Tok_Identifier ) )
|
||||
if ( check( Tok_Identifier ) || bitfield_is_set(u32, currtok.Flags, TF_Identifier) )
|
||||
{
|
||||
name = currtok;
|
||||
eat( Tok_Identifier );
|
||||
eat( currtok.Type );
|
||||
// ( <Macro> <ValueType> <Name> = <Expression>, <Macro> <ValueType> <Name>
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user