aboutsummaryrefslogtreecommitdiffhomepage
path: root/forth/ForthParser.h
diff options
context:
space:
mode:
Diffstat (limited to 'forth/ForthParser.h')
-rw-r--r--forth/ForthParser.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/forth/ForthParser.h b/forth/ForthParser.h
index 65a39a1a0f..706e95bf01 100644
--- a/forth/ForthParser.h
+++ b/forth/ForthParser.h
@@ -21,7 +21,8 @@ public:
void add(const char name[], size_t len, ForthWord* word) {
// SkString str(name, len);
// SkDebugf("add %s %p\n", str.c_str(), word);
- (void)fDict.set(name, len, word);
+ SkDEBUGCODE(bool isNewWord = )fDict.set(name, len, word);
+ SkASSERT(isNewWord);
}
ForthWord* find(const char name[], size_t len) const {