From c0c025dda78f52e861ad6dcb6029679130af118f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Tue, 16 Jun 2015 19:16:50 -0400 Subject: [PATCH] src/ffi: do not declare the impl signature before the custom C code MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- src/ffi/light_c.nit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ffi/light_c.nit b/src/ffi/light_c.nit index 86ec651..e0cd788 100644 --- a/src/ffi/light_c.nit +++ b/src/ffi/light_c.nit @@ -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 -- 1.7.9.5