cpp

[TOC]

x #X

1
2
3
4
5
6
7
8
9
10
11
12
#define X(x) { x, #x },
struct WindowsMessage
{
int msgid;
char* pname;
} WindowsMessages[] =
{
X( WM_PAINT )
X( WM_NCPAINT )
...
};
#undef X