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 /034address.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 '034address.cc')
-rw-r--r-- | 034address.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/034address.cc b/034address.cc index 4b955050..d4c3e4d7 100644 --- a/034address.cc +++ b/034address.cc @@ -358,11 +358,12 @@ int allocate(int size) { //? int Total_free = 0; //? int Num_free = 0; //? :(before "End Setup") +//? if (!Memory.empty()) { +//? cerr << Total_alloc << "/" << Num_alloc +//? << " vs " << Total_free << "/" << Num_free << '\n'; +//? cerr << SIZE(Memory) << '\n'; +//? } //? Total_alloc = Num_alloc = Total_free = Num_free = 0; -//? :(before "End Teardown") -//? cerr << Total_alloc << "/" << Num_alloc -//? << " vs " << Total_free << "/" << Num_free << '\n'; -//? cerr << SIZE(Memory) << '\n'; :(code) void ensure_space(int size) { |