Skip to content

Commit 8d38592

Browse files
committed
fix(introspection): skip core zencode pseudo-scenario
1 parent 2b2cfa7 commit 8d38592

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/zenroom.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,9 @@ int zencode_get_statements(const char *scenario) {
662662
"ZEN.if_steps = {}\n"
663663
"ZEN.foreach_steps = {}\n"
664664
"for _, v in ipairs(zencode_scenarios()) do\n"
665-
" if not SCENARIO then\n"
665+
" if v == 'zencode' then\n"
666+
" -- core parser module, not a loadable scenario extension\n"
667+
" elseif not SCENARIO then\n"
666668
" require_once('zencode_'..v)\n"
667669
" elseif SCENARIO == v then\n"
668670
" require_once('zencode_'..v)\n"

0 commit comments

Comments
 (0)