aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src/correction.h
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2013-01-09 15:21:44 +0900
committerKen Wakasa <kwakasa@google.com>2013-01-09 15:44:48 +0900
commitccebd5cefe0b6b17676edd8639f62bb708a7dd2e (patch)
tree1f597f7ad1db01781eff7a355f45f467793e5747 /native/jni/src/correction.h
parent8315e8168b135599237f5493f72e667f39503006 (diff)
downloadlatinime-ccebd5cefe0b6b17676edd8639f62bb708a7dd2e.tar.gz
latinime-ccebd5cefe0b6b17676edd8639f62bb708a7dd2e.tar.xz
latinime-ccebd5cefe0b6b17676edd8639f62bb708a7dd2e.zip
Replace assert() with ASSERT() & use -funwind-tables for debug builds
Change-Id: I9ec14eb24ebc45657119a45aba09517e71a22974
Diffstat (limited to 'native/jni/src/correction.h')
-rw-r--r--native/jni/src/correction.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/native/jni/src/correction.h b/native/jni/src/correction.h
index 046935579..8c477716a 100644
--- a/native/jni/src/correction.h
+++ b/native/jni/src/correction.h
@@ -17,7 +17,6 @@
#ifndef LATINIME_CORRECTION_H
#define LATINIME_CORRECTION_H
-#include <cassert>
#include <cstring> // for memset()
#include "correction_state.h"
@@ -150,7 +149,7 @@ class Correction {
// Branch if multiplier == 2 for the optimization
if (multiplier < 0) {
if (DEBUG_DICT) {
- assert(false);
+ ASSERT(false);
}
AKLOGI("--- Invalid multiplier: %d", multiplier);
} else if (multiplier == 0) {