1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-07-29 20:21:48 +02:00

Move away from C format to cpp::fmt.

This commit is contained in:
Sandu Liviu Catalin
2021-02-03 17:50:39 +02:00
parent 09a1767ffe
commit 0de21ae5a0
39 changed files with 215 additions and 215 deletions

View File

@@ -140,7 +140,7 @@ Object & Controller::Attach(Object && obj, Listener * ptr)
if (cmd.mHash == hash)
{
// Include information necessary to help identify hash collisions!
STHROWF("Command '%s' already exists as '%s' for hash (%zu)",
STHROWF("Command '{}' already exists as '{}' for hash ({})",
name.c_str(), cmd.mName.c_str(), hash);
}
}
@@ -916,7 +916,7 @@ void Listener::ProcSpec(const SQChar * str)
{
if (idx >= SQMOD_MAX_CMD_ARGS)
{
STHROWF("Extraneous type specifiers: %d >= %d", idx, SQMOD_MAX_CMD_ARGS);
STHROWF("Extraneous type specifiers: {} >= {}", idx, SQMOD_MAX_CMD_ARGS);
}
// Move to the next character
++str;
@@ -1005,7 +1005,7 @@ void Listener::ProcSpec(const SQChar * str)
}
} break;
// Unknown type!
default: STHROWF("Unknown type specifier (%c) at argument: %u", *str, idx);
default: STHROWF("Unknown type specifier ({:c}) at argument: {}", *str, idx);
}
}
}