reduction on debug_str

This commit is contained in:
2024-12-02 00:10:24 -05:00
parent 937235b776
commit 37c33ffb3e
4 changed files with 14 additions and 212 deletions

View File

@ -88,6 +88,17 @@ AST::operator Code()
return { this };
}
#pragma region Code
inline
char const* debug_str( Code code )
{
if ( code.ast == nullptr )
return "Code::debug_str: AST is null!";
return debug_str( code.ast );
}
inline
Code& Code::operator ++()
{
@ -97,6 +108,8 @@ Code& Code::operator ++()
return *this;
}
#pragma endregion Code
inline
void CodeClass::add_interface( CodeType type )
{