Home
last modified time | relevance | path

Searched refs:assert_msg (Results 1 – 1 of 1) sorted by relevance

/Renode-v1.15.3-c57714d/tools/external_control_client/lib/
Drenode_api.c48 #define assert_msg(x, msg) do { if (unlikely(!(x))) { fprintf(stderr, "Assert not met in %s:%d: %s\… macro
163 assert_msg(count > 0, "Usage error: attempted to write invalid number of bytes to socket"); in write_or_fail()
196 assert_msg(count > 0, "Usage error: attempted to read invalid number of bytes from socket"); in read_or_fail()
224 assert_msg(response == SUCCESS_HANDSHAKE, "API command version mismatch"); in perform_handshake()
342 assert_msg(callbacks_count < MAX_CALLBACK_COUNT, "Cannot register any more callbacks"); in register_callback()
358assert_msg(response->ed < callbacks_count, "Tried to invoke callback for an invalid event descript… in invoke_callback()
359assert_msg(response->size == sizeof(renode_gpio_event_data_t), ERRMSG_UNEXPECTED_RESPONSE_PAYLOAD_… in invoke_callback()
365 assert_msg(false, "Tried to invoke callback for an invalid command"); in invoke_callback()
517 assert_msg(data_size == 4, "received unexpected number of bytes"); in renode_get_machine()
519 assert_msg(data[0] >= 0, "received invalid machine descriptor"); in renode_get_machine()
[all …]