1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
| int lua_PCSdkManager_OpenUrlReq(lua_State *tolua_S) { int argc = 0; bool ok = true;
argc = lua_gettop(tolua_S) - 1; if (argc == 2) { std::string arg0; int arg1; ok &= luaval_to_std_string(tolua_S, 2, &arg0, "PCSdkManager:OpenUrlReq"); ok &= luaval_to_int32(tolua_S, 3, (int *)&arg1, "PCSdkManager:OpenUrlReq"); if (!ok) { tolua_error(tolua_S, "invalid arguments in function 'lua_PCSdkManager_OpenUrlReq'", nullptr); return 0; } PCSdkManager::getInstance()->OpenUrlReq(arg0, arg1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "PCSdkManager:OpenUrlReq", argc, 2); return 0; }
int lua_register_pcsdk_PCSdkManager(lua_State* tolua_S) { tolua_usertype(tolua_S, "PCSdkManager"); tolua_cclass(tolua_S, "PCSdkManager", "PCSdkManager", "", nullptr);
tolua_beginmodule(tolua_S, "PCSdkManager"); tolua_function(tolua_S, "OpenUrlReq", lua_PCSdkManager_OpenUrlReq);
tolua_endmodule(tolua_S);
std::string typeName = typeid(PCSdkManager).name(); g_luaType[typeName] = "PCSdkManager"; g_typeCast["PCSdkManager"] = "PCSdkManager"; return 1; } TOLUA_API int register_all_pcsdk(lua_State* tolua_S) { tolua_open(tolua_S);
tolua_module(tolua_S, nullptr, 0); tolua_beginmodule(tolua_S, nullptr);
lua_register_pcsdk_PCSdkManager(tolua_S);
tolua_endmodule(tolua_S); return 1; }
|