getinfo
getinfo
getinfo (FUNCTION, [WHAT])
Returns a table with information about a function. FUNCTIONcan also be a level number, relative to getinfo (level 0). If the number is invalid, a nil is returned. The returned table contains all the fields returned by lua_getinfo. The default for WHAT is to get all information available.