public object CheckObject(Type t) { try { return luaState.CheckObject(stackPos++, t); } catch (Exception e) { EndPCall(); throw e; } }