diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-07-09 14:25:48 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-07-09 14:25:48 -0700 |
commit | 6573fe1f1aa6d87c027d10429ded7e0162e52902 (patch) | |
tree | ddd110af3e987e49bb60ba05c16833c92d6d8901 /000organization.cc | |
parent | 6ff9413c5dc624df6a33d7680a6667c27cd9352e (diff) | |
download | mu-6573fe1f1aa6d87c027d10429ded7e0162e52902.tar.gz |
3965 - get rid of the teardown() function
Instead of setup() and teardown() we'll just use a reset() function from now on, which will bring the machine back to a good state before each test or run, and also before exit (to avoid memory leaks).
Diffstat (limited to '000organization.cc')
-rw-r--r-- | 000organization.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/000organization.cc b/000organization.cc index a29a8813..b1f1dc07 100644 --- a/000organization.cc +++ b/000organization.cc @@ -111,7 +111,7 @@ // End Globals int main(int argc, char* argv[]) { - atexit(teardown); + atexit(reset); // End One-time Setup @@ -131,10 +131,6 @@ int main(int argc, char* argv[]) { //: Without directives or with the :(code) directive, lines get added at the //: end. :(code) -void setup() { +void reset() { // End Setup } - -void teardown() { - // End Teardown -} |