aboutsummaryrefslogtreecommitdiff
path: root/environment.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-07-31 01:06:50 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2013-07-31 01:06:50 +0300
commitc6755e1399191957e6fe8551b07a2d7f139ef5a8 (patch)
tree45aabd5327ba5d177511db217bc19e15a25d410e /environment.py
parentb4836a0a2ee551eeff92414f1b9f1220b31b3c74 (diff)
downloadmeson-c6755e1399191957e6fe8551b07a2d7f139ef5a8.zip
meson-c6755e1399191957e6fe8551b07a2d7f139ef5a8.tar.gz
meson-c6755e1399191957e6fe8551b07a2d7f139ef5a8.tar.bz2
Removed one layer of indirection.
Diffstat (limited to 'environment.py')
-rw-r--r--environment.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/environment.py b/environment.py
index 30213a7..1fb35d0 100644
--- a/environment.py
+++ b/environment.py
@@ -195,9 +195,7 @@ int main(int argc, char **argv) {
# information.
templ = '''#include<stdio.h>
-#define TESTTYPE %s
-
-#define SDEF(num) struct foo##num { char pad[num]; TESTTYPE x; };
+#define SDEF(num) struct foo##num { char pad[num]; %s x; };
#define PR(num) printf("%%d\\n", (int)sizeof(struct foo##num))
SDEF(1)
SDEF(2)