fix using assertion API

assert_not_const_defined is correct.