[ create a new paste ] login | about

Link: http://codepad.org/VpEQv7Pz    [ raw code | output | fork ]

C++, pasted on May 4:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#define EEK(arg) printf ("%s:%i %s() EEK %s\n", __FILE__, __LINE__, __FUNCTION__, arg);

int foo()
{
  EEK("omg");
  return 1;
}

int main()
{
  EEK("lol");

  EEK("wtf");
  int i = foo();
}


Output:
1
2
3
t.cpp:12 main() EEK lol
t.cpp:14 main() EEK wtf
t.cpp:6 foo() EEK omg


Create a new paste based on this one


Comments: