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