Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- //template <typename Func>
- void RunTestImpl(const string& string_func_name) {
- cerr << string_func_name;
- }
- #define RUN_TEST(func) RunTestImpl(#func)
- void Test1() {
- cerr <<" OK"<<endl;
- }
- int main() {
- RUN_TEST(Test1);
- }
Advertisement
Add Comment
Please, Sign In to add comment