diff options
Diffstat (limited to 'ldebug.c')
-rw-r--r-- | ldebug.c | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldebug.c,v 2.145 2017/11/23 16:35:54 roberto Exp roberto $ | 2 | ** $Id: ldebug.c,v 2.146 2017/11/23 19:29:04 roberto Exp roberto $ |
3 | ** Debug Interface | 3 | ** Debug Interface |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -606,12 +606,16 @@ static const char *funcnamefromcode (lua_State *L, CallInfo *ci, | |||
606 | case OP_LEN: tm = TM_LEN; break; | 606 | case OP_LEN: tm = TM_LEN; break; |
607 | case OP_CONCAT: tm = TM_CONCAT; break; | 607 | case OP_CONCAT: tm = TM_CONCAT; break; |
608 | case OP_EQ: tm = TM_EQ; break; | 608 | case OP_EQ: tm = TM_EQ; break; |
609 | case OP_LT: tm = TM_LT; break; | 609 | case OP_LT: case OP_LE: case OP_LTI: case OP_LEI: |
610 | case OP_LE: tm = TM_LE; break; | 610 | *name = "order"; /* '<=' can call '__lt', etc. */ |
611 | return "metamethod"; | ||
612 | case OP_SHRI: case OP_SHLI: | ||
613 | *name = "shift"; | ||
614 | return "metamethod"; | ||
611 | default: | 615 | default: |
612 | return NULL; /* cannot find a reasonable name */ | 616 | return NULL; /* cannot find a reasonable name */ |
613 | } | 617 | } |
614 | *name = getstr(G(L)->tmname[tm]); | 618 | *name = getstr(G(L)->tmname[tm]) + 2; |
615 | return "metamethod"; | 619 | return "metamethod"; |
616 | } | 620 | } |
617 | 621 | ||