static int GetInstance(IntPtr L) { try { ToLua.CheckArgsCount(L, 0); ScreenResolution o = ScreenResolution.GetInstance(); ToLua.PushSealed(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }