35 #define MPHELL_ASSERT_LINE __LINE__ 37 #define MPHELL_ASSERT_LINE -1 41 #define MPHELL_ASSERT_FILE __FILE__ 43 #define MPHELL_ASSERT_FILE "" 46 #define MPHELL_ASSERT_FAIL(info) mphell_assert_error (MPHELL_ASSERT_FILE, \ 47 MPHELL_ASSERT_LINE, info) 49 #define MPHELL_ASSERT_ALWAYS(expr, info) \ 52 MPHELL_ASSERT_FAIL (info); \ 56 #if MPHELL_USE_ASSERT == 1 57 #define MPHELL_ASSERT(expr, info) MPHELL_ASSERT_ALWAYS (expr, info) 59 #define MPHELL_ASSERT(expr, info) do {} while (0)
void mphell_error(char *expr)
Write in stderr, filename, line and expr, free mphell.
enum mphell_status_flag_enum mphell_status_flag
Enumerate status flag.
void mphell_assert_error(const char *filename, int line, const char *expr)
Write in stderr, filename, line and expr, free mphell.
mphell_status_t mphell_status[1]
The status is a couple (flag, information)
void mphell_error_free(char *expr)
Write in stderr, filename, line and expr, free expr and mphell.
Wrap the config.h generated by configure.ac.
mphell_status_flag_enum
Enumerate status flag.
The status is a couple (flag, information)