This commit is contained in:
mvandervoord
2008-11-24 18:45:25 +00:00
parent 7044cfe1a8
commit ecc3e29299
+16 -16
View File
@@ -169,29 +169,29 @@ CONFIGURATION
-------------------------------------------------------------------- --------------------------------------------------------------------
CException is a mostly portable library. It has one universal CException is a mostly portable library. It has one universal
dependency, and another which is required if working in a multi-tasking dependency, and some macros which are required if working in a
environment. multi-tasking environment.
1. The standard C library setjmp must be available 1. The standard C library setjmp must be available
2. If working in a multitasking environment, a method of obtaining an 2. If working in a multitasking environment, methods for obtaining an
index into an array of frames is required. If the OS supports a index into an array of frames and to get the overall number of
method to retrieve Task ID's, and those Tasks are number 0, 1, 2.. id's are required. If the OS supports a method to retrieve Task
you are in an ideal situation. Otherwise, a more creative mapping ID's, and those Tasks are number 0, 1, 2... you are in an ideal
function may be required. Note that this function is likely to be situation. Otherwise, a more creative mapping function may be
called twice for each protected block. This is the greatest required. Note that this function is likely to be called twice
overhead in the system. for each protected block. This is the only overhead in the system.
ExceptionConfig.h Exception.h
----------------- -----------------
By convention, most projects include Exception.h which defines any
further requirements, then calls CException.h to do the gruntwork.
EXCEPTION_MULTI_STACK - define if you are in a multi-tasking environment EXCEPTION_NONE - set to a number which will never be an exception id in
your system.
EXCEPTION_NONE - set to a number which will never be an exception id in EXCEPTION_GET_ID - If in a multi-tasking environment, this should be
your system. set to be a call to the function described in #2 above.
EXCEPTION_GET_ID() - If in a multi-tasking environment, this should be
set to be a call to the function described in #2 above.
EXCEPTION_NUM_ID - If in a multi-tasking environment, this should be set EXCEPTION_NUM_ID - If in a multi-tasking environment, this should be set
to the number of ID's required (usually the number of to the number of ID's required (usually the number of