-
-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(wasm-api-bindgen): update Zig codegen default imports (#368)
- adopt unscoped JS pkg name also as Zig import - update fixtures - update readme
- Loading branch information
1 parent
565990f
commit 574af0f
Showing
10 changed files
with
86 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
const std = @import("std"); | ||
const wasmtypes = @import("wasmapi-types"); | ||
const bindgen = @import("wasm-api-bindgen"); | ||
|
||
pub const A = extern struct { | ||
a: wasmtypes.OpaquePtr, | ||
ptr: *wasmtypes.OpaquePtr, | ||
ptr2: *[2]wasmtypes.OpaquePtr, | ||
constPtr: *wasmtypes.ConstOpaquePtr, | ||
slice: wasmtypes.OpaquePtrSlice, | ||
constSlice: wasmtypes.ConstOpaquePtrSlice, | ||
array: [3]wasmtypes.OpaquePtr, | ||
constArray: [3]wasmtypes.ConstOpaquePtr, | ||
a: bindgen.OpaquePtr, | ||
ptr: *bindgen.OpaquePtr, | ||
ptr2: *[2]bindgen.OpaquePtr, | ||
constPtr: *bindgen.ConstOpaquePtr, | ||
slice: bindgen.OpaquePtrSlice, | ||
constSlice: bindgen.ConstOpaquePtrSlice, | ||
array: [3]bindgen.OpaquePtr, | ||
constArray: [3]bindgen.ConstOpaquePtr, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.