File cocotb_utils.h

Defines

xstr(a) str(a)
str(a) #a
to_python()

do { \

if (is_python_context) { \

LOG_ERROR(“FATAL: We are calling up again”); \

exit(1); \

} \

++is_python_context; \

LOG_DEBUG(“Returning to Python”); \

} while (0)


to_simulator()

do { \

if (!is_python_context) { \

LOG_ERROR(“FATAL: We have returned twice from python\n”); \

exit(1); \

} \

–is_python_context; \

LOG_DEBUG(“Returning to simulator”); \

} while (0)


COCOTB_UNUSED(x) ((void)x)

Functions

void *utils_dyn_open(const char *lib_name)
void *utils_dyn_sym(void *handle, const char *sym_name)

Variables

int is_python_context