chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-hackers] [PATCH] Allow assert to accept an arbitrary expression


From: Alaric Snell-Pym
Subject: [Chicken-hackers] [PATCH] Allow assert to accept an arbitrary expression as the message
Date: Thu, 08 Mar 2012 21:11:40 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


...which is evaluated at assertion failure time!

I undid the check that the supplied MSG is a string at expansion time,
and instead placed the string-append that combines it with the line
number into the result of expansion. For safety, I added explicit
(->string ...) around the message, due to the philosophy that it's good
for debugging logging tools to not break due to an error in generating
the error message, but instead to print whatever it can...

ABS

- --
Alaric Snell-Pym
http://www.snell-pym.org.uk/alaric/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9ZIIsACgkQRgz/WHNxCGogvACdHnnU+hE6AMUex/CEku0lx5Bm
LIAAnR3/S1UdEA8NMyOxh2SmO+XxtZlz
=jjO7
-----END PGP SIGNATURE-----

Attachment: 0001-Rather-than-requiring-assert-s-message-to-statically.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]