Skip to content

Commit b9e86be

Browse files
authored
SCM: define-cond-expand-feature debug (#392)
This enables compile-time instrumentation/alteration of code depending on the configured options. Note: This definition uses lower case debug in Scheme, while we use DEBUG in C.
1 parent dc0ea17 commit b9e86be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

languages/scm.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ compile_payload_scm()
5656
# prep the compiler options
5757
if [ $SYS_MODE = "debug" ]; then
5858
scm_opts="(declare (standard-bindings)(extended-bindings)(debug)(debug-location))"
59+
scm_opts="${scm_opts}(define-cond-expand-feature debug)"
5960
payload_cdefs="$payload_cdefs -D___LIBRARY -D___PRIMAL"
6061
else
6162
scm_opts="(declare (block)(not safe)(standard-bindings)(extended-bindings))"

0 commit comments

Comments
 (0)