mirror of https://github.com/bjornbytes/lovr.git
Add comment;
This commit is contained in:
parent
eb319fdade
commit
d33053cd01
|
@ -9,6 +9,7 @@
|
|||
typedef void voidFn(void);
|
||||
typedef void destructorFn(void*);
|
||||
|
||||
// Object names are lightuserdata because Variants need a non-Lua string due to threads.
|
||||
static int luax_meta__tostring(lua_State* L) {
|
||||
lua_getfield(L, -1, "__name");
|
||||
lua_pushstring(L, (const char*) lua_touserdata(L, -1));
|
||||
|
|
Loading…
Reference in New Issue