use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595)

* use new formatter for ERROR_PRINT, added ERROR_PRINTLN

* remove old log define

* fix comments
This commit is contained in:
turleypol 2024-01-12 06:51:44 +01:00 committed by GitHub
parent 43b776b94d
commit 0e675c516a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
219 changed files with 1228 additions and 1150 deletions

View file

@ -22,9 +22,10 @@ void ModuleFunctionDeclaration::accept( NodeVisitor& visitor )
visitor.visit_module_function_declaration( *this );
}
void ModuleFunctionDeclaration::describe_to( fmt::Writer& w ) const
void ModuleFunctionDeclaration::describe_to( std::string& w ) const
{
w << "module-function-declaration(" << module_name << "::" << name << ")";
fmt::format_to( std::back_inserter( w ), "module-function-declaration({}::{})", module_name,
name );
}
} // namespace Pol::Bscript::Compiler