diff options
author | Hugo Hörnquist <hugo@hornquist.se> | 2019-01-19 19:06:09 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@hornquist.se> | 2019-01-19 19:06:14 +0100 |
commit | c42c2834d8c7b5d81465b9d9d127d8384151b9cb (patch) | |
tree | 53b1a8eb0368d5f91525604eea2c3173083c1955 /macro.h | |
parent | Can now parse entire directory in one go. (diff) | |
download | calp-c42c2834d8c7b5d81465b9d9d127d8384151b9cb.tar.gz calp-c42c2834d8c7b5d81465b9d9d127d8384151b9cb.tar.xz |
[BROKEN] Work on adding hash tables.
Diffstat (limited to '')
-rw-r--r-- | macro.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/macro.h b/macro.h new file mode 100644 index 00000000..c4b3fc9b --- /dev/null +++ b/macro.h @@ -0,0 +1,10 @@ +#ifndef MACRO_H +#define MACRO_H + +#define TP(a, b) a ## b + +#define NEW(T, N, ...) \ + T* N = malloc(sizeof(*N)); \ + TP(T, _init) (N, __VA_ARGS__); + +#endif /* MACRO_H */ |