MCPcopy Create free account
hub / github.com/defold/defold / CsLuaAdd

Method CsLuaAdd

engine/lua/src/test/cs/test_lua.cs:21–27  ·  view source on GitHub ↗
(Lua.State* L)

Source from the content-addressed store, hash-verified

19 }
20
21 private static int CsLuaAdd(Lua.State* L)
22 {
23 int a = LuaL.checkinteger(L, 1);
24 int b = LuaL.checkinteger(L, 2);
25 Lua.pushinteger(L, a + b);
26 return 1;
27 }
28
29 private static int CsLuaMul(Lua.State* L)
30 {

Callers

nothing calls this directly

Calls 2

checkintegerMethod · 0.80
pushintegerMethod · 0.80

Tested by

no test coverage detected