fork(1) download
  1. #include <stdio.h>
  2.  
  3. #define TRACE(string) printf("Trying to execute: %s\n",#string); \
  4.   string
  5.  
  6. void foo() {
  7. printf("1\n");
  8. }
  9. void bar() {
  10. printf("2\n");
  11. }
  12.  
  13. int main() {
  14.  
  15. foo();
  16. TRACE(bar(););
  17. }
  18.  
  19.  
Success #stdin #stdout 0s 3096KB
stdin
Standard input is empty
stdout
1
Trying to execute: bar();
2