Files
mercury/benchmarks/progs/ray/debug.m
Paul Bone ea06fd8cde Add the benchmarks directory into the main Mercury repository.
This was a seperate repository in CVS and so it missed the conversion.

benchmarks/
    As above.
2013-01-04 12:13:53 +11:00

24 lines
412 B
Mathematica

:- module debug.
:- interface.
:- import_module string, list.
:- impure pred dump(string, list(string__poly_type)).
:- mode dump(in, in) is det.
:- implementation.
dump(Fmt, Args) :-
string__format(Fmt, Args, Str),
impure dump_str(Str).
:- impure pred dump_str(string::in) is det.
:- pragma foreign_proc("C",
dump_str(S::in),
[will_not_call_mercury, thread_safe],
"
fprintf(stderr, \"%s\", S);
").