Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://t.me/hitmyfeet канал с музыкой от начинающего программиста.
- #include <iostream>
- #include <string>
- using namespace std;
- template <typename T>
- void RunTestImpl(const T&inf, const string& str) {
- inf();
- cerr << str << " OK" << endl;
- }
- #define RUN_TEST(func) RunTestImpl(func, #func)
- void Test1() {
- }
- int main() {
- RUN_TEST(Test1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement