diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | dejagnu.h | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -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. @@ -352,5 +352,7 @@ class TestState { std::string GetMsg (void) { return lastmsg; } }; +TestState DG; + #endif /* __cplusplus */ #endif /* _DEJAGNU_H_ */ |