#include "message-iterator-class.h"
#include "compat/compiler.h"
-#include "lib/assert-pre.h"
+#include "lib/assert-cond.h"
#include "lib/func-status.h"
-#define BT_ASSERT_PRE_DEV_MSG_ITER_CLS_HOT(_msg_iter_cls) \
+#define BT_ASSERT_COND_DEV_MSG_ITER_CLS_HOT(_msg_iter_cls) \
BT_ASSERT_PRE_DEV_HOT((_msg_iter_cls), \
"Message iterator class", ": %!+I", (_msg_iter_cls))
BT_ASSERT_PRE_NO_ERROR();
BT_ASSERT_PRE_NON_NULL(message_iterator_class, "Message iterator class");
BT_ASSERT_PRE_NON_NULL(method, "Method");
- BT_ASSERT_PRE_DEV_MSG_ITER_CLS_HOT(message_iterator_class);
+ BT_ASSERT_COND_DEV_MSG_ITER_CLS_HOT(message_iterator_class);
message_iterator_class->methods.initialize = method;
BT_LIB_LOGD("Set message iterator class's iterator initialization method"
": %!+I", message_iterator_class);
BT_ASSERT_PRE_NO_ERROR();
BT_ASSERT_PRE_NON_NULL(message_iterator_class, "Message iterator class");
BT_ASSERT_PRE_NON_NULL(method, "Method");
- BT_ASSERT_PRE_DEV_MSG_ITER_CLS_HOT(message_iterator_class);
+ BT_ASSERT_COND_DEV_MSG_ITER_CLS_HOT(message_iterator_class);
message_iterator_class->methods.finalize = method;
BT_LIB_LOGD("Set message iterator class's finalization method"
": %!+I", message_iterator_class);
BT_ASSERT_PRE_NO_ERROR();
BT_ASSERT_PRE_NON_NULL(message_iterator_class, "Message iterator class");
BT_ASSERT_PRE_NON_NULL(seek_method, "Seek method");
- BT_ASSERT_PRE_DEV_MSG_ITER_CLS_HOT(message_iterator_class);
+ BT_ASSERT_COND_DEV_MSG_ITER_CLS_HOT(message_iterator_class);
message_iterator_class->methods.seek_ns_from_origin = seek_method;
message_iterator_class->methods.can_seek_ns_from_origin = can_seek_method;
BT_LIB_LOGD("Set message iterator class's \"seek nanoseconds from origin\" method"
BT_ASSERT_PRE_NO_ERROR();
BT_ASSERT_PRE_NON_NULL(message_iterator_class, "Message iterator class");
BT_ASSERT_PRE_NON_NULL(seek_method, "Seek method");
- BT_ASSERT_PRE_DEV_MSG_ITER_CLS_HOT(message_iterator_class);
+ BT_ASSERT_COND_DEV_MSG_ITER_CLS_HOT(message_iterator_class);
message_iterator_class->methods.seek_beginning = seek_method;
message_iterator_class->methods.can_seek_beginning = can_seek_method;
BT_LIB_LOGD("Set message iterator class's \"seek beginning\" methods"