emscripten_async_call(&dummy_async, 0, 0 ); //this call ensures that Browser library is imported to workaround https://github.com/kripken/emscripten/issues/4291
}
constchar *CallStringFunc(char *func) {
MOAIScopedLuaState state = MOAILuaRuntime::Get ().State ();
lua_getglobal ( state, "loadstring" );
if ( !state.IsType ( -1, LUA_TFUNCTION )) {
ZLLog_ErrorF ( ZLLog::CONSOLE, "Missing global Lua function 'loadstring'\n" );
}
state.Push ( func, strlen(func) );
int status = state.DebugCall ( state.GetLocalTop () - 1, 2 );
if ( state.LogErrors ( ZLLog::LOG_ERROR, ZLLog::CONSOLE, status )) returnNULL;