diff options
author | Chia-I Wu <olv@lunarg.com> | 2010-04-23 16:07:47 +0800 |
---|---|---|
committer | Chia-I Wu <olv@lunarg.com> | 2010-05-07 10:41:12 +0800 |
commit | d4589d381697b4b3dd291a3c93a34370508ef1e8 (patch) | |
tree | fd683feae1d9aaf0b21dfd95c518d3a296d11ddd /src/mapi/mapi/u_macros.h | |
parent | a73c6540d9a7f6e26d8568ba2fc522cb865f0a6c (diff) |
mapi: Add a generic C dispatcher.
The idea is to have an API generate a header using mapi_abi.py. The API
can then use the header to build a dispatcher.
Diffstat (limited to 'src/mapi/mapi/u_macros.h')
-rw-r--r-- | src/mapi/mapi/u_macros.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mapi/mapi/u_macros.h b/src/mapi/mapi/u_macros.h new file mode 100644 index 0000000000..72345b5f15 --- /dev/null +++ b/src/mapi/mapi/u_macros.h @@ -0,0 +1,12 @@ +#ifndef _U_MACROS_ +#define _U_MACROS_ + +#define _U_STRINGIFY(x) #x +#define _U_CONCAT(x, y) x ## y +#define _U_CONCAT_STR(x, y) #x#y + +#define U_STRINGIFY(x) _U_STRINGIFY(x) +#define U_CONCAT(x, y) _U_CONCAT(x, y) +#define U_CONCAT_STR(x, y) _U_CONCAT_STR(x, y) + +#endif /* _U_MACROS_ */ |