diff options
Diffstat (limited to 'native/jni/src/defines.h')
-rw-r--r-- | native/jni/src/defines.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/native/jni/src/defines.h b/native/jni/src/defines.h index 46595d80a..96abfe8d4 100644 --- a/native/jni/src/defines.h +++ b/native/jni/src/defines.h @@ -93,6 +93,7 @@ static AK_FORCE_INLINE void dumpWord(const int *word, const int length) { #include <execinfo.h> #include <stdlib.h> +#define DO_ASSERT_TEST #define ASSERT(success) do { if (!(success)) { showStackTrace(); assert(success);} } while (0) #define SHOW_STACK_TRACE do { showStackTrace(); } while (0) @@ -111,6 +112,7 @@ static inline void showStackTrace() { } #else #include <cassert> +#define DO_ASSERT_TEST #define ASSERT(success) assert(success) #define SHOW_STACK_TRACE #endif @@ -120,6 +122,7 @@ static inline void showStackTrace() { #define AKLOGI(fmt, ...) #define DUMP_RESULT(words, frequencies, maxWordCount, maxWordLength) #define DUMP_WORD(word, length) +#undef DO_ASSERT_TEST #define ASSERT(success) #define SHOW_STACK_TRACE #define INTS_TO_CHARS(input, length, output) @@ -349,6 +352,9 @@ static inline void prof_out(void) { #define MAX_SPACES_INTERNAL 16 +// TODO: Change this to MAX_WORDS, remove MAX_WORDS in Java, and stop getting it from Java +#define MAX_WORDS_INTERNAL 18 + // Max Distance between point to key #define MAX_POINT_TO_KEY_LENGTH 10000000 |