Comment 1 for bug 914612

Revision history for this message
Attila Lendvai (attila-lendvai) wrote : Re: internal_errors_enabled is NIL in a save-lisp-and-die executable image long after startup

err, sorry, scratch that. it's due to something i call, and that used to work, but not anymore.

CL-USER> (sb-alien:extern-alien "lose_on_corruption_p" boolean)
T
CL-USER> (sb-alien:extern-alien "internal_errors_enabled" boolean)
T
CL-USER> (setf (sb-alien:extern-alien "lose_on_corruption_p" boolean) t)
T
CL-USER> (sb-alien:extern-alien "internal_errors_enabled" boolean)
NIL

i guess the way boolean type is given to extern-alien results in a wider setf than what C uses for booleans... any hints on how to do it the right way?

this is on linux x64.