mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 10:43:29 +00:00
cgo: add support for C.int, c.uint, etc
This commit is contained in:
Vendored
+4
@@ -4,6 +4,10 @@ int32_t fortytwo() {
|
||||
return 42;
|
||||
}
|
||||
|
||||
int add(int a, int b) {
|
||||
return a + b;
|
||||
}
|
||||
|
||||
int32_t mul(int32_t a, int32_t b) {
|
||||
return a * b;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user