Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to call lua function from objc #29

Open
thienhaole92 opened this issue Feb 23, 2016 · 1 comment
Open

How to call lua function from objc #29

thienhaole92 opened this issue Feb 23, 2016 · 1 comment

Comments

@thienhaole92
Copy link

I wrote the code blow but when I run this code message 'MoboSDK_Login is not loaded' is printed. Please help me resolve this issue.

lua_getglobal(wax_currentLuaState(), "DisplayEnterPhoneControllerWithChannel");
if (lua_type(wax_currentLuaState(), -1) != LUA_TTABLE) {
NSLog(@"MoboSDK_Login is not loaded");
}
lua_pushstring(wax_currentLuaState(), "This is channel :)");
if (lua_pcall(wax_currentLuaState(), 1, 0, 0)) {
NSLog(@"Lua Error: %s\n", lua_tostring(wax_currentLuaState(), -1));
}

@intheway
Copy link

intheway commented Mar 5, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants