aboutsummaryrefslogtreecommitdiff
path: root/src/parseTools.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-09-04 21:38:20 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-09-04 21:38:20 -0700
commit28083e9ef143c5102a72bd893962fa8b0f455909 (patch)
tree5442fa6614a1d3050631b421b565c13ba3b5701a /src/parseTools.js
parent9bf72e56b5494cb5de102332d6e5c5e20082ff85 (diff)
restore ZTVN10 hacks, but only for non-ta2 where we do not link in libcxxabi
Diffstat (limited to 'src/parseTools.js')
-rw-r--r--src/parseTools.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/parseTools.js b/src/parseTools.js
index 66354dca..90c5acab 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -35,8 +35,13 @@ function preprocess(text) {
var op = parts[2];
var value = parts[3];
if (op) {
- assert(op === '==')
- showStack.push(ident in this && this[ident] == value);
+ if (op === '==') {
+ showStack.push(ident in this && this[ident] == value);
+ } else if (op === '!=') {
+ showStack.push(!(ident in this && this[ident] == value));
+ } else {
+ error('unsupported preprecessor op ' + op);
+ }
} else {
showStack.push(ident in this && this[ident] > 0);
}