mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2026-11-04 16:02:20 +00:00
ffi: support for java native functions
This commit is contained in:
6 files changed
+100
-4
No files matched your search
@@ -0,0 +1,10 @@
|
||||
func java_system_err()
|
||||
native java "java.lang.System:static-getter:err:java.io.PrintStream"
|
||||
|
||||
func print_stream_println(stream, line)
|
||||
native java "java.io.PrintStream:virtual:println:void:java.lang.String"
|
||||
|
||||
export func main() {
|
||||
let error = java_system_err()
|
||||
print_stream_println(error, "Hello World")
|
||||
}
|
||||
Reference in new issue
Block a user