src/ffi: do not declare the impl signature before the custom C code
authorAlexis Laferrière <alexis.laf@xymus.net>
Tue, 16 Jun 2015 23:16:50 +0000 (19:16 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Thu, 18 Jun 2015 11:33:27 +0000 (07:33 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

src/ffi/light_c.nit

index 86ec651..e0cd788 100644 (file)
@@ -48,7 +48,7 @@ class CLanguage
                var fc = new ExternCFunction(m, mmodule)
                fc.decls.add( block.location.as_line_pragma )
                fc.exprs.add( block.code )
-               ecc.add_exported_function( fc )
+               ecc.body_impl.add fc.to_writer
        end
 
        redef fun compile_extern_class(block, m, ecc, mmodule) do end