aboutsummaryrefslogtreecommitdiff
path: root/tests/include
diff options
context:
space:
mode:
authorJoey Yakimowich-Payne <jyapayne@gmail.com>2020-05-13 17:29:26 -0600
committergenotrance <dev@genotrance.com>2020-05-15 11:20:00 -0500
commit9895303578c5313a775b9226d051dfe63905495a (patch)
tree0c537b239f538c8216d8bae508d192fcbb4769db /tests/include
parented26911436a2107d287a8f1d4f4df7727d6de53d (diff)
downloadnimterop-9895303578c5313a775b9226d051dfe63905495a.tar.gz
nimterop-9895303578c5313a775b9226d051dfe63905495a.zip
Make undefined constants keep types
Diffstat (limited to 'tests/include')
-rw-r--r--tests/include/tast2.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/include/tast2.h b/tests/include/tast2.h
index 57c060e..b8433f9 100644
--- a/tests/include/tast2.h
+++ b/tests/include/tast2.h
@@ -42,17 +42,16 @@ extern "C" {
#define REG_STR "regular string"
#define NOTSUPPORTEDSTR "not a " REG_STR
-#define NULLCHAR '\0'/* comments should not break things*/
-#define OCTCHAR '\012' // nor should this comment
+#define NULLCHAR '\0'
+#define OCTCHAR '\012'
#define HEXCHAR '\xFE'
#define TRICKYSTR "\x4E\034\nfoo\0\'\"\r\v\a\b\e\f\t\\\?bar"
#define ALLSHL (SHL1 | SHL2 | SHL3)
-// disable for windows for now
-#ifndef _WIN32
-// const not supported yet
-const int SOME_CONST = 8;
+#ifdef NIMTEROP
+#define SOME_CONST 8
+#endif
struct some_struct_s
{
@@ -65,7 +64,6 @@ struct parent_struct_s
};
typedef struct some_struct_s SOME_ARRAY[SOME_CONST];
-#endif
struct A0;
struct A1 {};