static int Init(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); SDKInterface obj = (SDKInterface)ToLua.CheckObject <SDKInterface>(L, 1); obj.Init(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
private static int Init(IntPtr L) { int result; try { ToLua.CheckArgsCount(L, 1); SDKInterface sDKInterface = (SDKInterface)ToLua.CheckObject(L, 1, typeof(SDKInterface)); sDKInterface.Init(); result = 0; } catch (Exception e) { result = LuaDLL.toluaL_exception(L, e, null); } return(result); }