The debug file (-k) has a section for system constants. This is generated from the arrays z_system_constant_list[] and glulx_system_constant_list[].
I suspect a few are missing.
The new constant #highest_meta_action_number is also missing. But that's set up to generate an error if $GRAMMAR_META_FLAG is not set. So just sticking it in the arrays will cause an unnecessary error.
We could rely on check_system_constant_available() for this, if it were updated to handle #highest_meta_action_number, which it currently doesn't. If we moved the $GRAMMAR_META_FLAG check there, we could simplify value_of_system_constant_z/g().
This would also let the debug file omit meaningless constants when $OMIT_SYMBOL_TABLE is set.
check_system_constant_available() would need a "quiet" mode.
The debug file (
-k
) has a section for system constants. This is generated from the arraysz_system_constant_list[]
andglulx_system_constant_list[]
.I suspect a few are missing.
The new constant
#highest_meta_action_number
is also missing. But that's set up to generate an error if$GRAMMAR_META_FLAG
is not set. So just sticking it in the arrays will cause an unnecessary error.We could rely on check_system_constant_available() for this, if it were updated to handle
#highest_meta_action_number
, which it currently doesn't. If we moved the$GRAMMAR_META_FLAG
check there, we could simplify value_of_system_constant_z/g().This would also let the debug file omit meaningless constants when
$OMIT_SYMBOL_TABLE
is set.check_system_constant_available() would need a "quiet" mode.