Improved README.md
This commit is contained in:
parent
196b56935c
commit
808b0f4a2f
1 changed files with 6 additions and 1 deletions
|
|
@ -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",
|
||||
.{},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue