mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-16 09:53:36 +00:00
Add #include <stdio.h>.
Estimated hours taken: 0.25 library/math.m: library/require.m: Add #include <stdio.h>.
This commit is contained in:
@@ -189,6 +189,8 @@
|
||||
|
||||
:- pragma(c_code, "
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
/*
|
||||
** Handle domain errors.
|
||||
*/
|
||||
|
||||
@@ -47,6 +47,8 @@ require(Goal, Message) :-
|
||||
|
||||
/* error/1, from require.m */
|
||||
|
||||
:- pragma(c_header_code, "#include <stdio.h>").
|
||||
|
||||
:- pragma(c_code, error(Message::in), "
|
||||
fflush(stdout);
|
||||
fprintf(stderr, ""Software error: %s\\n"", Message);
|
||||
|
||||
Reference in New Issue
Block a user