cmake_test/asserts/defined
- cmake_test/asserts/defined.ct_assert_defined(var)
Asserts that the provided variable is defined.
This function can be used to assert that a variable is defined. It does not assert that the variable is set to any particular value. If the variable is not defined it will raise an
ASSERTION_FAILED
exception.- Parameters:
var (str*) – The identifier to check for defined-ness.
- cmake_test/asserts/defined.ct_assert_not_defined(var)
Asserts that the provided variable is not defined.
This function can be used to assert that a variable is not defined. If the variable is actually defined this function will raise an error.
- Parameters:
var (str*) – The identifier to check for defined-ness.