nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9de5255
)
nitg: fix FFI _is_null functions
author
Alexis Laferrière
<alexis.laf@xymus.net>
Thu, 13 Feb 2014 01:03:24 +0000
(20:03 -0500)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Tue, 4 Mar 2014 16:35:06 +0000
(11:35 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
src/compiler_ffi.nit
patch
|
blob
|
history
diff --git
a/src/compiler_ffi.nit
b/src/compiler_ffi.nit
index
36c1453
..
2d520ac
100644
(file)
--- a/
src/compiler_ffi.nit
+++ b/
src/compiler_ffi.nit
@@
-483,7
+483,7
@@
redef class MExplicitCast
# special checks
if from == to.as_nullable then
# format A_is_null
- ccu.header_decl.add("#define {from.mangled_cname}_is_null {from.mangled_cname}_is_a_{to.mangled_cname}\n")
+ ccu.header_decl.add("#define {from.mangled_cname}_is_null !{from.mangled_cname}_is_a_{to.mangled_cname}\n")
end
#