misc/liblua/lvm.c
changeset 3697 d5b30d6373fc
parent 2812 0a24853de796
child 10017 de822cd3df3a
equal deleted inserted replaced
3695:c11abf387a7d 3697:d5b30d6373fc
   123       luaG_typeerror(L, t, "index");
   123       luaG_typeerror(L, t, "index");
   124     if (ttisfunction(tm)) {
   124     if (ttisfunction(tm)) {
   125       callTMres(L, val, tm, t, key);
   125       callTMres(L, val, tm, t, key);
   126       return;
   126       return;
   127     }
   127     }
   128     t = tm;  /* else repeat with `tm' */ 
   128     t = tm;  /* else repeat with `tm' */
   129   }
   129   }
   130   luaG_runerror(L, "loop in gettable");
   130   luaG_runerror(L, "loop in gettable");
   131 }
   131 }
   132 
   132 
   133 
   133 
   150       luaG_typeerror(L, t, "index");
   150       luaG_typeerror(L, t, "index");
   151     if (ttisfunction(tm)) {
   151     if (ttisfunction(tm)) {
   152       callTM(L, tm, t, key, val);
   152       callTM(L, tm, t, key, val);
   153       return;
   153       return;
   154     }
   154     }
   155     t = tm;  /* else repeat with `tm' */ 
   155     t = tm;  /* else repeat with `tm' */
   156   }
   156   }
   157   luaG_runerror(L, "loop in settable");
   157   luaG_runerror(L, "loop in settable");
   158 }
   158 }
   159 
   159 
   160 
   160