diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-03-06 21:21:03 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-03-06 21:21:03 -0800 |
commit | e729bd054e479bae074ed46df06f0c169db2fcc7 (patch) | |
tree | e30e173bd1d52a932f99e5c5972338b3c3d343fe /unwind.c | |
parent | a8449a74871f420759b26b60e368548b7938e35c (diff) | |
download | txr-e729bd054e479bae074ed46df06f0c169db2fcc7.tar.gz txr-e729bd054e479bae074ed46df06f0c169db2fcc7.tar.bz2 txr-e729bd054e479bae074ed46df06f0c169db2fcc7.zip |
* lib.c (assert_s): New global variable.
(obj_init): Intern assert symbol, store in assert_s.
* lib.h (assert_s): Declared.
* match.c (typed_error, v_assert, h_assert): New static functions.
(dir_tables_init): Register v_assert and h_assert.
Register assert_s as non-data-matching directive.
* unwind.c (uw_init): Register assert as a subtype
of error.
* txr.1: Describe assert.
Diffstat (limited to 'unwind.c')
-rw-r--r-- | unwind.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -432,4 +432,5 @@ void uw_init(void) uw_register_subtype(query_error_s, error_s); uw_register_subtype(file_error_s, error_s); uw_register_subtype(process_error_s, error_s); + uw_register_subtype(assert_s, error_s); } |