fork(2) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. #define TRACE(arg) cout << #arg ":" << (arg) << endl;
  6.  
  7. ///...a simple macro that can be used like this:
  8.  
  9. int a = 5;
  10. TRACE(a)
  11. a += 7;
  12. TRACE(a)
  13. TRACE(a+7)
  14. TRACE(17*11)
  15. return 0;
  16. }
Success #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
a:5
a:12
a+7:19
17*11:187