diff --git a/Fake.h b/Fake.h index 9ceccc7..3cd2e40 100644 --- a/Fake.h +++ b/Fake.h @@ -16,6 +16,7 @@ namespace spy */ template +extern std::vector fake_list; class Fake { public: @@ -33,6 +34,7 @@ Fake(H& hook, ReturnType (*func)(ArgTypes...)) :hook_(hook) { func_ = hook_.patch(func); + fake_list.push_back(&this); } template