[ create a new paste ] login | about

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

C++, pasted on Aug 13:
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <iostream>

#define DEF_HOGE(x) void x##_hoge() {std::cerr << #x", hoge!" << std::endl;}

DEF_HOGE(foo)
DEF_HOGE(bar)

int main ()
{
  foo_hoge();
  bar_hoge();
  return 0;
}


Output:
1
2
foo, hoge!
bar, hoge!


Create a new paste based on this one


Comments: