X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/5ffbe7949e61a61451bb6ebedc5482e8568d7421..6afec9101d5ea87e3df4bda2239ffd05f8154fa6:/lib/sod.3 diff --git a/lib/sod.3 b/lib/sod.3 index 9f95c78..c49378a 100644 --- a/lib/sod.3 +++ b/lib/sod.3 @@ -147,6 +147,16 @@ instances and classes inherit from the standard root object. While the translator can (at some effort) support alternative roots, they will require different run-time support machinery. +.PP +Some of Sod's macros include runtime checking by default. +This checking can be disabled if you value performance +more than early diagnosis of problems. +Define +.B SOD_RECKLESS +to a nonzero value +before including +.B +to inhibit the runtime checking. . .SS Layout utilities The following macros are useful in @@ -484,6 +494,13 @@ It may be appropriate to .BR assert (3) that the object is ready for deallocation at this time. .PP +By default, this macro will abort the program +if the size allocated for the instance doesn't match +the size required by the class object; +set +.B SOD_RECKLESS +to inhibit this check. +.PP The .B SOD_MAKE macro,