31 if (filename != NULL && filename[0] !=
'\0')
33 fprintf (stderr,
"%s:", filename);
36 fprintf (stderr,
"%d: ", line);
39 fprintf (stderr,
"MPHELL assertion failed: %s\n", expr);
47 if (MPHELL_ASSERT_FILE != NULL && MPHELL_ASSERT_FILE[0] !=
'\0')
49 fprintf (stderr,
"%s:", MPHELL_ASSERT_FILE);
50 if (MPHELL_ASSERT_LINE != -1)
52 fprintf (stderr,
"%d: ", MPHELL_ASSERT_LINE);
55 fprintf (stderr,
"MPHELL error: %s\n", expr);
63 if (MPHELL_ASSERT_FILE != NULL && MPHELL_ASSERT_FILE[0] !=
'\0')
65 fprintf (stderr,
"%s:", MPHELL_ASSERT_FILE);
66 if (MPHELL_ASSERT_LINE != -1)
68 fprintf (stderr,
"%d: ", MPHELL_ASSERT_LINE);
71 fprintf (stderr,
"MPHELL error free: %s\n", expr);
void free_mphell()
Free MPHELL memory, especially the big amount of temporary memory.
void mphell_error(char *expr)
Write in stderr, filename, line and expr, free mphell.
Declaration of MPHELL initialisation function.
void mphell_error_free(char *expr)
Write in stderr, filename, line and expr, free expr and mphell.
void mphell_assert_error(const char *filename, int line, const char *expr)
Write in stderr, filename, line and expr, free mphell.