summaryrefslogtreecommitdiffstats
path: root/src/uscxml/Interpreter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uscxml/Interpreter.cpp')
-rw-r--r--src/uscxml/Interpreter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uscxml/Interpreter.cpp b/src/uscxml/Interpreter.cpp
index 9770387..f5aaf77 100644
--- a/src/uscxml/Interpreter.cpp
+++ b/src/uscxml/Interpreter.cpp
@@ -96,7 +96,7 @@
e.name = "error.platform"; \
e.data.compound["cause"] = Data(msg, Data::VERBATIM); \
throw e; \
-
+
/// macro to catch exceptions in executeContent
#define CATCH_AND_DISTRIBUTE(msg) \
@@ -556,7 +556,7 @@ void InterpreterImpl::join() {
bool InterpreterImpl::isRunning() {
// return _running || !_topLevelFinalReached;
- return _state.thread & InterpreterState::USCXML_THREAD_RUNNING;
+ return (_state.thread & InterpreterState::USCXML_THREAD_RUNNING) > 0;
}
void InterpreterImpl::run(void* instance) {