mirror of https://github.com/rusefi/lua.git
"lua_getobjname" must return "tag-method" and not "fallback".
This commit is contained in:
parent
3c5d71cf77
commit
2a1da64872
2
iolib.c
2
iolib.c
|
@ -247,7 +247,7 @@ static void lua_printstack (FILE *f)
|
|||
case 'g':
|
||||
fprintf(f, "function %s", name);
|
||||
break;
|
||||
case 'f':
|
||||
case 't':
|
||||
fprintf(f, "`%s' tag method", name);
|
||||
break;
|
||||
default: {
|
||||
|
|
4
table.c
4
table.c
|
@ -3,7 +3,7 @@
|
|||
** Module to control static tables
|
||||
*/
|
||||
|
||||
char *rcs_table="$Id: table.c,v 2.70 1997/05/26 14:42:51 roberto Exp roberto $";
|
||||
char *rcs_table="$Id: table.c,v 2.71 1997/06/09 17:28:14 roberto Exp roberto $";
|
||||
|
||||
#include "luamem.h"
|
||||
#include "auxlib.h"
|
||||
|
@ -258,7 +258,7 @@ char *lua_getobjname (lua_Object o, char **name)
|
|||
{ /* try to find a name for given function */
|
||||
functofind = luaI_Address(o);
|
||||
if ((*name = luaI_travfallbacks(checkfunc)) != NULL)
|
||||
return "fallback";
|
||||
return "tag-method";
|
||||
else if ((*name = lua_travsymbol(checkfunc)) != NULL)
|
||||
return "global";
|
||||
else return "";
|
||||
|
|
Loading…
Reference in New Issue