Preprocessor macro expanding to a command
Space | User/kernel |
Context | Sync/async |
May block | No |
SPL | Any |
Dynamic memory | No |
#include <SPAD/AC.H>
TEST_SPL(spllow, splhigh)
splhigh must be equivalent to current SPL. This is the equivalent of TEST_SPLX(SPL_X(spllow), SPL_X(splhigh))
. See definition of TEST_SPLX.
The macro performs a compile-time check for correct argument.
When __DEBUG is >= 2, the macro performs a check if current SPL is higher or equal than new SPL.