Codechange: replace C-style string processing with C++-style for the listing callbacks
This commit is contained in:
@@ -269,7 +269,7 @@ void Squirrel::PrintFunc(HSQUIRRELVM vm, const std::string &s)
|
||||
/* Check if we have a custom print function */
|
||||
SQPrintFunc *func = ((Squirrel *)sq_getforeignptr(vm))->print_func;
|
||||
if (func == nullptr) {
|
||||
fmt::print("%s", s);
|
||||
fmt::print("{}", s);
|
||||
} else {
|
||||
(*func)(false, s);
|
||||
}
|
||||
|
Reference in New Issue
Block a user