fork download
  1. #include <stdio.h>
  2.  
  3. #define X() x(__func__)
  4.  
  5. void x(const char* caller) {
  6. printf("x() is called from %s()\n", caller);
  7. }
  8.  
  9. void y() {
  10. X();
  11. }
  12.  
  13. void z() {
  14. X();
  15. }
  16.  
  17. int main(void) {
  18. y();
  19. z();
  20. return 0;
  21. }
  22.  
Success #stdin #stdout 0s 10320KB
stdin
Standard input is empty
stdout
x() is called from y()
x() is called from z()