diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2019-05-07 11:44:32 -0500 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2019-05-07 11:44:32 -0500 |
| commit | 2457671f9eef2c90fd5f403fbcde97c69c5aa64b (patch) | |
| tree | 21bbc0535aa78cf2eb3ccb1ef71352dea47eb45c /tests | |
| parent | 69cfce561a2114616e57c64effc2f6d36db1967d (diff) | |
| download | nimterop-2457671f9eef2c90fd5f403fbcde97c69c5aa64b.tar.gz nimterop-2457671f9eef2c90fd5f403fbcde97c69c5aa64b.zip | |
Pragma cleanup and fixes
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/include/test.h | 1 | ||||
| -rw-r--r-- | tests/tnimterop_c.nim | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/include/test.h b/tests/include/test.h index 8138e54..2e4cf08 100644 --- a/tests/include/test.h +++ b/tests/include/test.h @@ -27,6 +27,7 @@ extern "C" { typedef uint8_t PRIMTYPE; typedef PRIMTYPE CUSTTYPE; +typedef CUSTTYPE _CCUSTTYPE_; struct STRUCT0; diff --git a/tests/tnimterop_c.nim b/tests/tnimterop_c.nim index 01fa70b..0eafa11 100644 --- a/tests/tnimterop_c.nim +++ b/tests/tnimterop_c.nim @@ -40,6 +40,7 @@ block: var pt: PRIMTYPE ct: CUSTTYPE + cct: CCUSTTYPE s0: STRUCT0 s1: STRUCT1 @@ -64,6 +65,7 @@ var pt = 3 ct = 4 +cct = 5 s1.field1 = 5 s2.field1 = 6 |
