debug_assert
- debug_assert(cond, varargin)
debug_assert()- Callsassert()if and only ifDEBUG_MODEis true.debug_assert(cond) debug_assert(cond, msg, A) debug_assert(cond, errID, msg) debug_assert(cond, errID, msg, A)
Calls
assert()if global variableDEBUG_MODEexists and is true, otherwise skips the call toassert()and does nothing.See also
toggle_debug_mode(),assert.