From 4bba1b08d381bd5005c5984991a61f1d9a7daa43 Mon Sep 17 00:00:00 2001 From: Not-Nik Date: Fri, 22 May 2020 22:11:28 +1000 Subject: [PATCH] Add scope section in readme --- ReadMe.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ReadMe.md b/ReadMe.md index cbfd7a0..5e8bcb0 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -4,3 +4,7 @@ Bindings tested on raylib version 3.0 ## Workaround On this branch I will try to wokraround the [technical restrictions](https://github.com/Not-Nik/raylib-zig#technical-restrictions) the normal binding has. May cause severe bugs, terms of the [license](https://github.com/Not-Nik/raylib-zig/blob/master/LICENSE) apply. + +### Scope +What is possible at the moment is passing arguments despite zigs C ABI issues. We do that by passing a pointer to a wrapper function which is implemented in C and then calls the original function. Back in zig we wrap the pointer function so they can be used without addresses. +Wrapping return values is not possible at the moment as far as I'm concerned. If you do come up with a solution, feel free to submit a pull request. \ No newline at end of file