Browse Source

add clear_exit_flag

David Rose 23 years ago
parent
commit
082be720ce
2 changed files with 13 additions and 1 deletions
  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
 //               removes it from the list.
 ////////////////////////////////////////////////////////////////////
-void PandaFramework::
+INLINE void PandaFramework::
 close_window(WindowFramework *wf) {
   int n = find_window(wf);
   if (n >= 0) {
@@ -183,3 +183,14 @@ INLINE void PandaFramework::
 set_exit_flag() {
   _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();
 
   INLINE void set_exit_flag();
+  INLINE void clear_exit_flag();
 
 protected:
   virtual PT(WindowFramework) make_window_framework();