From 808b0f4a2fac914292c45bd1d434a89039c6374e Mon Sep 17 00:00:00 2001 From: abux Date: Mon, 27 Jul 2026 09:26:28 +0100 Subject: [PATCH] Improved README.md --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 487a4b4..5af2669 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,11 @@ try zla.call(void, "hello", .{"World"}); try zla.call(void, "hello", .{"..."}); ``` +**Call lua directly** +```zig +const val = try zla.exec(i64, "return 6 * 9"); +``` + **Call function from lua** ```zig try zla.call(void, "hello", .{"World"}); @@ -22,7 +27,7 @@ try zla.call(void, "hello", .{"World"}); **Call function from lua with return type** ```zig -const coords = try zl.call( +const coords = try zla.call( struct { f64, f64 }, "getCoords", .{},