MCPcopy Create free account
hub / github.com/Tencent/xLua / csharp_function_wrapper_wrapper

Function csharp_function_wrapper_wrapper

WebGLPlugins/xlua.c:775–796  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

773}
774
775static int csharp_function_wrapper_wrapper(lua_State *L) {
776 int ret = 0;
777
778 if (g_csharp_wrapper_caller == NULL) {
779 return luaL_error(L, "g_csharp_wrapper_caller not set");
780 }
781
782 ret = g_csharp_wrapper_caller(L, xlua_tointeger(L, lua_upvalueindex(1)), lua_gettop(L));
783
784 if (lua_toboolean(L, lua_upvalueindex(2)))
785 {
786 lua_pushboolean(L, 0);
787 lua_replace(L, lua_upvalueindex(2));
788 return lua_error(L);
789 }
790
791 if (lua_gethook(L)) {
792 call_ret_hook(L);
793 }
794
795 return ret;
796}
797
798LUA_API void xlua_push_csharp_wrapper(lua_State* L, int wrapperid)
799{

Callers

nothing calls this directly

Calls 9

luaL_errorFunction · 0.85
xlua_tointegerFunction · 0.85
lua_gettopFunction · 0.85
lua_tobooleanFunction · 0.85
lua_pushbooleanFunction · 0.85
lua_replaceFunction · 0.85
lua_errorFunction · 0.85
lua_gethookFunction · 0.85
call_ret_hookFunction · 0.85

Tested by

no test coverage detected