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

Function luaO_arith

third-party/lua-5.5.0/src/lobject.c:188–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186
187
188void luaO_arith (lua_State *L, int op, const TValue *p1, const TValue *p2,
189 StkId res) {
190 if (!luaO_rawarith(L, op, p1, p2, s2v(res))) {
191 /* could not perform raw operation; try metamethod */
192 luaT_trybinTM(L, p1, p2, res, cast(TMS, (op - LUA_OPADD) + TM_ADD));
193 }
194}
195
196
197lu_byte luaO_hexavalue (int c) {

Callers 1

lua_arithFunction · 0.70

Calls 2

luaO_rawarithFunction · 0.70
luaT_trybinTMFunction · 0.70

Tested by

no test coverage detected