hacky support for caller main in file permissions
This commit is contained in:
parent
c1e4b84222
commit
feb10708ae
|
@ -333,6 +333,8 @@ char* caller(lua_State* L) {
|
|||
memset(result, '\0', 1024);
|
||||
if (ar.name)
|
||||
strncpy(result, ar.name, 1020);
|
||||
else /* TODO: distinguish functions called from C */
|
||||
strncpy(result, "main", 1020);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue