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

Function luaO_arith

extlibs/lua/src/lobject.c:126–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124
125
126void luaO_arith (lua_State *L, int op, const TValue *p1, const TValue *p2,
127 StkId res) {
128 if (!luaO_rawarith(L, op, p1, p2, s2v(res))) {
129 /* could not perform raw operation; try metamethod */
130 luaT_trybinTM(L, p1, p2, res, cast(TMS, (op - LUA_OPADD) + TM_ADD));
131 }
132}
133
134
135int luaO_hexavalue (int c) {

Callers 1

lua_arithFunction · 0.85

Calls 2

luaO_rawarithFunction · 0.85
luaT_trybinTMFunction · 0.85

Tested by

no test coverage detected