Creates *const i8 from a &str
This either takes a literal and appends a null char (\0) to it.
or if it is an expression, tries to make a CString from it.
Will panic if passed an expression that a CString could not be created from.
Quickly calls [get_interface_handle] and [get_from_interface] for you in one macro call. Errors are combined into one.
Like println!, however it prints to the gmod server’s console.
First arg is the lua state.
Rest are varargs.
Can be either a variable storing a str literal, or a referenced String / str variable
Creates an array of LuaRegs for you to be used with luaL_register
Tries to convert a const char* to a &str
Will panic if the const char* is not valid utf-8
Tries to create a *const i8 from a &str
This either takes a literal and appends a null char (\0) to it.
or if it is a value, makes a cstring and returns the pointer to it.
Tries to convert a const char* to an &str