From dc62a8cc6c70389a6868b9d66ac2341e686ee877 Mon Sep 17 00:00:00 2001 From: Boris Batkin Date: Tue, 5 Nov 2024 09:22:36 -0800 Subject: [PATCH] so that it compiles without DAS_ENABLE_KEEPALIVE --- src/ast/ast_simulate.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ast/ast_simulate.cpp b/src/ast/ast_simulate.cpp index 87677f068..196f83f56 100644 --- a/src/ast/ast_simulate.cpp +++ b/src/ast/ast_simulate.cpp @@ -115,10 +115,12 @@ namespace das // common for move and copy SimNode_CallBase * getCallBase ( SimNode * node ) { +#if DAS_ENABLE_KEEPALIVE if ( node->rtti_node_isKeepAlive() ) { SimNode_KeepAlive * ka = static_cast(node); node = ka->value; } +#endif DAS_ASSERTF(node->rtti_node_isCallBase(),"we are calling getCallBase on a node, which is not a call base node." "we should not be here, script compiler should have caught this during compilation."); return static_cast(node);