shushus

Спринт 3. Работаем с cerr.

Dec 9th, 2022
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. //template <typename Func>
  7. void RunTestImpl(const string& string_func_name) {
  8.     cerr << string_func_name;
  9.  
  10. }
  11.  
  12. #define RUN_TEST(func) RunTestImpl(#func)
  13.  
  14. void Test1() {
  15.     cerr <<" OK"<<endl;
  16. }
  17.  
  18. int main() {
  19.     RUN_TEST(Test1);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment