mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-17 06:47:17 +00:00
Convert null from MC++ to C#.
Estimated hours taken: 0.1 Branches: main library/construct.m: Convert null from MC++ to C#.
This commit is contained in:
@@ -181,11 +181,11 @@ null_to_no(S) = ( if null(S) then no else yes(S) ).
|
|||||||
SUCCESS_INDICATOR = (S == NULL);
|
SUCCESS_INDICATOR = (S == NULL);
|
||||||
").
|
").
|
||||||
|
|
||||||
:- pragma foreign_proc("MC++",
|
:- pragma foreign_proc("C#",
|
||||||
null(S::in),
|
null(S::in),
|
||||||
[will_not_call_mercury, thread_safe, promise_pure],
|
[will_not_call_mercury, thread_safe, promise_pure],
|
||||||
"
|
"
|
||||||
SUCCESS_INDICATOR = (S == NULL);
|
SUCCESS_INDICATOR = (S == null);
|
||||||
").
|
").
|
||||||
|
|
||||||
:- pred get_functor_2(type_desc__type_desc::in, int::in, string::out, int::out,
|
:- pred get_functor_2(type_desc__type_desc::in, int::in, string::out, int::out,
|
||||||
|
|||||||
Reference in New Issue
Block a user