From f64fbb67b11ed6e48bf1585d14c1fded3c173944 Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Fri, 10 Apr 2020 22:45:29 -0500 Subject: Fix #178 - single underscore --- tests/include/test.h | 6 ++++++ tests/tnimterop_c.nim | 1 + 2 files changed, 7 insertions(+) (limited to 'tests') diff --git a/tests/include/test.h b/tests/include/test.h index b22e2d8..e9c281c 100644 --- a/tests/include/test.h +++ b/tests/include/test.h @@ -194,6 +194,12 @@ struct JKL { int **f1; }; +// Issue #178 +typedef enum +{ + SDLK_UNDERSCORE = '_' +} SDL_KeyCode; + #ifdef __cplusplus } #endif diff --git a/tests/tnimterop_c.nim b/tests/tnimterop_c.nim index fe4e9ee..e78e7f2 100644 --- a/tests/tnimterop_c.nim +++ b/tests/tnimterop_c.nim @@ -227,3 +227,4 @@ cg.f2 = nil doAssert BIT == 1 doAssert ca(nil) == 1 doAssert cc(nil) == 2 +doAssert SDLK_UNDERSCORE == 95 \ No newline at end of file -- cgit v1.2.3