w r | 1 Jul 23:09
Favicon

cond-expand: debug?

Is is possible to detect programmatically whether the currently running program was compiled with -g?  I'm
thinking of something along the lines of

(cond-expand
 (bigloo-debug (print "-g used")
 (else (print "-g not used"))

This would allow the construction of more assert-like forms which evaluate only under -g.

Wayne

Manuel.Serrano | 4 Jul 12:30

Re: cond-expand: debug?

> Is is possible to detect programmatically whether the currently running program was compiled with -g? 
I'm thinking of something along the lines of
> 
> (cond-expand
>  (bigloo-debug (print "-g used")
>  (else (print "-g not used"))
> 
> This would allow the construction of more assert-like forms which evaluate only under -g.
This sounds like a good idea. I will add for the next release.

--

-- 
Manuel


Gmane