static int GetCurSignalType(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); GameSDKInterface obj = (GameSDKInterface)ToLua.CheckObject <GameSDKInterface>(L, 1); string o = obj.GetCurSignalType(); LuaDLL.lua_pushstring(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }