Adds helper function for printing constString.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-03-28 17:15:06 +02:00
parent f8c3e92769
commit 514de9a2ba
2 changed files with 4 additions and 0 deletions

View File

@@ -81,6 +81,9 @@ void AngelScriptResolver::Initialize(CreatureLib::Battling::BattleLibrary* arg,
r = _engine->RegisterGlobalFunction("void print(const string &in)", asFUNCTION(Print), asCALL_CDECL);
if (r < 0)
throw ArbUt::Exception("Registering print function failed.");
r = _engine->RegisterGlobalFunction("void print(const constString &in)", asFUNCTION(PrintConst), asCALL_CDECL);
if (r < 0)
throw ArbUt::Exception("Registering print function failed.");
}
_builder.StartNewModule(_engine, "pkmn");