util: bundle string.format replacement

Needed for functions like cl.mesg which need to print a formatted
message. Previously these functions had to call string.format, and
would have to throw an error if it was not available.
This commit is contained in:
Jeremy Baxter 2024-03-24 18:39:40 +13:00
parent a87c36d61e
commit 89e584c5f5
2 changed files with 294 additions and 0 deletions

1
util.h
View file

@ -12,6 +12,7 @@
int lfail(lua_State *);
int lfailm(lua_State *, const char *);
int lstrfmt(lua_State *);
size_t strbcat(char *, const char *, size_t);
size_t strbcpy(char *, const char *, size_t);