Macaulay2 Engine
Loading...
Searching...
No Matches

◆ IM2_last_error_message()

M2_string IM2_last_error_message ( void )

Engine error handling mechanism. Any engine routine which encounters an error (e.g. Rings not the same) often returns a NULL value, and sets an error message, which can be obtained from this routine. Any routine that can set this may return a type such as "MatrixOrNull". This routine clears the error message and returns it.

Definition at line 99 of file engine.cpp.

99{ return M2_tostring(error_message()); }
const char * error_message()
Definition error.c:49
M2_string M2_tostring(const char *s)
Definition m2-types.cpp:31

References error_message(), and M2_tostring().