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.
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
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.
Creates a valid function to be passed down to lua.
Note this function will not be registered automatically for you, you must use luaL_register or functions like lua_pushcfunction.
This may change in the future or allow for something like #[lua_function(name = “foo”, auto = true)]