mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
7 lines
137 B
Zig
7 lines
137 B
Zig
pub export fn add(a: i32, b: i32) i32 {
|
|
return a + b;
|
|
}
|
|
|
|
// to compile:
|
|
// zig build-lib -OReleaseFast ./add.zig -dynamic --name add
|