Skip to content

Commit

Permalink
fix(C): Resource name in import should be the original name
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Jan 5, 2024
1 parent d831ee7 commit 0104f86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/c/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ void {ns}_{snake}_destructor({ty_name} *rep);
__attribute__(( __import_module__("[export]{module}"), __import_name__("[resource-new]{name}")))
extern int32_t __wasm_import_{ns}_{snake}_new(int32_t);
__attribute__((__import_module__("[export]{module}"), __import_name__("[resource-rep]{snake}")))
__attribute__((__import_module__("[export]{module}"), __import_name__("[resource-rep]{name}")))
extern int32_t __wasm_import_{ns}_{snake}_rep(int32_t);
{own} {ns}_{snake}_new({ty_name} *rep) {{
Expand Down

0 comments on commit 0104f86

Please sign in to comment.