mirror of
https://github.com/Ed94/gencpp.git
synced 2025-06-30 19:01:02 -07:00
String::is_equal added (bad last commit)
This commit is contained in:
@ -368,6 +368,15 @@ CodeBody gen_ast_inlines()
|
||||
return { rcast(AST*, ast)->duplicate() };
|
||||
}
|
||||
inline
|
||||
bool <typename>::is_body()
|
||||
{
|
||||
if ( ast == nullptr )
|
||||
{
|
||||
return rcast(AST*, ast)->is_body();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
inline
|
||||
bool <typename>::is_equal( Code other )
|
||||
{
|
||||
if ( ast == nullptr || other.ast == nullptr )
|
||||
|
Reference in New Issue
Block a user