example project
This commit is contained in:
parent
6c2ddef1bb
commit
98c2758a59
24 changed files with 669 additions and 0 deletions
13
example/extension/main.odin
Normal file
13
example/extension/main.odin
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
package main
|
||||
|
||||
import "core:fmt"
|
||||
|
||||
double :: f64
|
||||
|
||||
@export add :: proc(a, b: double) -> double {
|
||||
return a + b
|
||||
}
|
||||
|
||||
@export pass_pointer :: proc(ptr: rawptr) {
|
||||
fmt.println(ptr)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue