From: Alexis Laferrière Date: Tue, 16 Jun 2015 23:16:50 +0000 (-0400) Subject: src/ffi: do not declare the impl signature before the custom C code X-Git-Tag: v0.7.6~25^2~1 X-Git-Url: http://nitlanguage.org src/ffi: do not declare the impl signature before the custom C code Signed-off-by: Alexis Laferrière --- 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