String::is_equal added (bad last commit)

This commit is contained in:
ed committed 2024-12-01 13:29:33 -05:00
1 parent f61c1c560d
commit 9e88cb8724
6 files changed
+302 -7

No files matched your search

+9
View File
@@ -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 )