Skip to content

Commit

Permalink
Added #[no_mangle] to constructor function
Browse files Browse the repository at this point in the history
  • Loading branch information
katyo committed Oct 1, 2018
1 parent 06df1e4 commit a7b9132
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ macro_rules! register_module {
pub static __LOAD_NEON_MODULE: extern "C" fn() = {
fn __init_neon_module($module: $crate::context::ModuleContext) -> $crate::result::NeonResult<()> $init

#[no_mangle]
extern "C" fn __load_neon_module() {
// Put everything else in the ctor fn so the user fn can't see it.
#[repr(C)]
Expand Down

0 comments on commit a7b9132

Please sign in to comment.