Browse Source

Add global TestState object in dejagnu.h

master
Jacob Bachmeyer 3 years ago
parent
commit
ad376ed0b1
  1. 1
      ChangeLog
  2. 2
      dejagnu.h

1
ChangeLog

@ -2,6 +2,7 @@
* dejagnu.h (TestState::TestState): Only perform initialization
when the first TestState object is constructed.
(DG): Add global TestState object.
* dejagnu.h (DG__endmsg): New function, called using atexit().
(endmsg_registered, TestState_count): Add fields to DG__status.

2
dejagnu.h

@ -352,5 +352,7 @@ class TestState {
std::string GetMsg (void) { return lastmsg; }
};
TestState DG;
#endif /* __cplusplus */
#endif /* _DEJAGNU_H_ */

Loading…
Cancel
Save