Bläddra i källkod

add clear_exit_flag

David Rose 23 år sedan
förälder
incheckning
082be720ce
2 ändrade filer med 13 tillägg och 1 borttagningar
  1. 12 1
      panda/src/framework/pandaFramework.I
  2. 1 0
      panda/src/framework/pandaFramework.h

+ 12 - 1
panda/src/framework/pandaFramework.I

@@ -92,7 +92,7 @@ get_window(int n) const {
 //  Description: Closes the indicated WindowFramework window and
 //  Description: Closes the indicated WindowFramework window and
 //               removes it from the list.
 //               removes it from the list.
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
-void PandaFramework::
+INLINE void PandaFramework::
 close_window(WindowFramework *wf) {
 close_window(WindowFramework *wf) {
   int n = find_window(wf);
   int n = find_window(wf);
   if (n >= 0) {
   if (n >= 0) {
@@ -183,3 +183,14 @@ INLINE void PandaFramework::
 set_exit_flag() {
 set_exit_flag() {
   _exit_flag = true;
   _exit_flag = true;
 }
 }
+
+////////////////////////////////////////////////////////////////////
+//     Function: PandaFramework::clear_exit_flag
+//       Access: Public
+//  Description: Resets the exit flag after it has previously been
+//               set.
+////////////////////////////////////////////////////////////////////
+INLINE void PandaFramework::
+clear_exit_flag() {
+  _exit_flag = false;
+}

+ 1 - 0
panda/src/framework/pandaFramework.h

@@ -98,6 +98,7 @@ public:
   void main_loop();
   void main_loop();
 
 
   INLINE void set_exit_flag();
   INLINE void set_exit_flag();
+  INLINE void clear_exit_flag();
 
 
 protected:
 protected:
   virtual PT(WindowFramework) make_window_framework();
   virtual PT(WindowFramework) make_window_framework();