Improved README.md

This commit is contained in:
abux 2026-07-27 09:26:28 +01:00
parent 196b56935c
commit 808b0f4a2f

View file

@ -15,6 +15,11 @@ try zla.call(void, "hello", .{"World"});
try zla.call(void, "hello", .{"..."}); try zla.call(void, "hello", .{"..."});
``` ```
**Call lua directly**
```zig
const val = try zla.exec(i64, "return 6 * 9");
```
**Call function from lua** **Call function from lua**
```zig ```zig
try zla.call(void, "hello", .{"World"}); try zla.call(void, "hello", .{"World"});
@ -22,7 +27,7 @@ try zla.call(void, "hello", .{"World"});
**Call function from lua with return type** **Call function from lua with return type**
```zig ```zig
const coords = try zl.call( const coords = try zla.call(
struct { f64, f64 }, struct { f64, f64 },
"getCoords", "getCoords",
.{}, .{},