diff options
Diffstat (limited to 'test/unit/helpers.moon')
-rw-r--r-- | test/unit/helpers.moon | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/unit/helpers.moon b/test/unit/helpers.moon index 8064537d93..f533b9a1c6 100644 --- a/test/unit/helpers.moon +++ b/test/unit/helpers.moon @@ -108,6 +108,12 @@ vim_init = -> os.mch_early_init! vim_init_called = true +-- C constants. +NULL = ffi.cast 'void*', 0 + +OK = 1 +FAIL = 0 + return { cimport: cimport cppimport: cppimport @@ -119,4 +125,7 @@ return { cstr: cstr to_cstr: to_cstr vim_init: vim_init + NULL: NULL + OK: OK + FAIL: FAIL } |