Skip to content
Commit 078f8203 authored by Paul Asmuth's avatar Paul Asmuth
Browse files

add runtime sanity checks

In contrast to most of the other parts of the codebase, the "sexpr"
utility and manipulation code deals with a lot of raw pointers. This
change adds a number of runtime assertions and null pointer checks
so that potential future bugs in consumers of the API will trigger
an exception instead of generating invalid memory reads or writes.

Still, correct could should never trigger any of the newly added
runtime errors; every thrown exception is considered a bug.
parent 4a24ae3a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment