MCPcopy Create free account
hub / github.com/PlutoLang/Pluto / luaO_arith

Function luaO_arith

src/lobject.cpp:198–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196
197
198void luaO_arith (lua_State *L, int op, const TValue *p1, const TValue *p2,
199 StkId res) {
200 if (!luaO_rawarith(L, op, p1, p2, s2v(res))) {
201 /* could not perform raw operation; try metamethod */
202 luaT_trybinTM(L, p1, p2, res, cast(TMS, (op - LUA_OPADD) + TM_ADD));
203 }
204}
205
206
207lu_byte 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