Fix #75 - support char and char* #defines
This commit is contained in:
parent
421bfdc53f
commit
3fcc3b9526
4 changed files with 14 additions and 2 deletions
|
|
@ -9,6 +9,8 @@ extern "C" {
|
|||
#define TEST_INT 512
|
||||
#define TEST_FLOAT 5.12
|
||||
#define TEST_HEX 0x512
|
||||
#define TEST_CHAR 'a'
|
||||
#define TEST_STR "hello world"
|
||||
|
||||
#ifdef __APPLE__
|
||||
#define OSDEF 10
|
||||
|
|
|
|||
|
|
@ -8,6 +8,11 @@ const
|
|||
|
||||
static:
|
||||
cDebug()
|
||||
cSkipSymbol(@[
|
||||
"PRIX8", "PRIX16", "PRIX32",
|
||||
"PRIXLEAST8", "PRIXLEAST16", "PRIXLEAST32",
|
||||
"PRIXFAST8"
|
||||
])
|
||||
|
||||
when defined(envTest):
|
||||
setDefines(@["lzmaStd"])
|
||||
|
|
|
|||
|
|
@ -46,6 +46,8 @@ cImport cSearchPath "test.h"
|
|||
check TEST_INT == 512
|
||||
check TEST_FLOAT == 5.12
|
||||
check TEST_HEX == 0x512
|
||||
check TEST_CHAR == 'a'
|
||||
check TEST_STR == "hello world"
|
||||
|
||||
when defined(osx):
|
||||
check OSDEF == 10
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue