nitg: fix FFI _is_null functions
authorAlexis Laferrière <alexis.laf@xymus.net>
Thu, 13 Feb 2014 01:03:24 +0000 (20:03 -0500)
committerAlexis 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

index 36c1453..2d520ac 100644 (file)
@@ -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
 
                #