summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2015-08-14 18:52:43 -0400
committerAllen Winter <allen.winter@kdab.com>2015-08-14 18:52:43 -0400
commit6e5534a979b3ab4d28e5a32f50c48395e14ff9e4 (patch)
tree7d51d5c5835dca41c66a89aa74582b6e38744415 /doc
parent530d6478ede9e7d5f6511f96841f0678e91c6e3f (diff)
downloadlibical-git-6e5534a979b3ab4d28e5a32f50c48395e14ff9e4.tar.gz
say goodbye the global variable icalerror_errors_are_fatal
and hello to icalerror_[set,get]_errors_are_fatal().
Diffstat (limited to 'doc')
-rw-r--r--doc/UsingLibical.txt13
1 files changed, 9 insertions, 4 deletions
diff --git a/doc/UsingLibical.txt b/doc/UsingLibical.txt
index 6692c355..8e31c559 100644
--- a/doc/UsingLibical.txt
+++ b/doc/UsingLibical.txt
@@ -1302,13 +1302,18 @@ of a good idea than a really useful bit of code.
5.6.4 ICAL_ERRORS_ARE_FATAL and icalerror_errors_are_fatal
-If the global variable icalerror_errors_are_fatal is set to 1, then
-any error condition will cause the program to abort. The abort occurs
+If icalerror_get_errors_are_fatal() returns 1, then any error
+condition will cause the program to abort. The abort occurs
in icalerror_set_errno(), and is done with an assert(0) if NDEBUG
is undefined, and with icalerror_crash_here if NDEBUG is defined.
-The default value of icalerror_errors_are_fatal is 1 when ICAL_ERRORS_ARE_FATAL
+Initially, icalerror_get_errors_are_fatal() is 1 when ICAL_ERRORS_ARE_FATAL
is defined, and 0 otherwise. Since ICAL_ERRORS_ARE_FATAL is defined
-by default, icalerror_errors_are_fatal is also defined by default.
+by default, icalerror_get_errors_are_fatal() is also set to 1 by default.
+
+You can change the compiled-in ICAL_ERRORS_ARE_FATAL behavior at runtime
+by calling icalerror_set_errors_are_fatal(0) (i.e, errors are not fatal)
+or icalerror_set_errors_are_fatal(1) (i.e, errors are fatal).
+
5.7 Naming Standard