MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / arith

Function arith

third-party/lua-5.5.0/src/lstrlib.c:290–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288
289
290static int arith (lua_State *L, int op, const char *mtname) {
291 if (tonum(L, 1) && tonum(L, 2))
292 lua_arith(L, op); /* result will be on the top */
293 else
294 trymt(L, mtname, mtname + 2);
295 return 1;
296}
297
298
299static int arith_add (lua_State *L) {

Callers 8

arith_addFunction · 0.70
arith_subFunction · 0.70
arith_mulFunction · 0.70
arith_modFunction · 0.70
arith_powFunction · 0.70
arith_divFunction · 0.70
arith_idivFunction · 0.70
arith_unmFunction · 0.70

Calls 3

tonumFunction · 0.70
lua_arithFunction · 0.70
trymtFunction · 0.70

Tested by

no test coverage detected