| 322 | |
| 323 | |
| 324 | static const char *getfuncname (lua_State *L, CallInfo *ci, const char **name) { |
| 325 | /* calling function is a known function? */ |
| 326 | if (ci != NULL && !(ci->callstatus & CIST_TAIL)) |
| 327 | return funcnamefromcall(L, ci->previous, name); |
| 328 | else return NULL; /* no way to find a name */ |
| 329 | } |
| 330 | |
| 331 | |
| 332 | static int auxgetinfo (lua_State *L, const char *what, lua_Debug *ar, |
no test coverage detected