MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / arith

Function arith

extlibs/lua/src/lstrlib.c:286–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 8

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

Calls 3

tonumFunction · 0.85
trymtFunction · 0.85
lua_arithFunction · 0.70

Tested by

no test coverage detected