File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -46,15 +46,15 @@ Then in your `build.zig` file you can use the dependency.
46
46
pub fn build(b: *std.Build) void {
47
47
// ... snip ...
48
48
49
- const lua_dep = b.dependency("lua_wrapper ", .{
49
+ const lua_dep = b.dependency("zlua ", .{
50
50
.target = target,
51
51
.optimize = optimize,
52
52
});
53
53
54
54
// ... snip ...
55
55
56
- // add the lua_wrapper module and lua artifact
57
- exe.root_module.addImport("lua_wrapper ", lua_dep.module("lua_wrapper "));
56
+ // add the zlua module and lua artifact
57
+ exe.root_module.addImport("zlua ", lua_dep.module("zlua "));
58
58
59
59
}
60
60
```
@@ -70,21 +70,21 @@ There are currently three additional options that can be passed to `b.dependency
70
70
For example, here is a ` b.dependency() ` call that and links against a shared Lua 5.2 library:
71
71
72
72
``` zig
73
- const lua_wrapper = b.dependency("lua_wrapper ", .{
73
+ const zlua = b.dependency("zlua ", .{
74
74
.target = target,
75
75
.optimize = optimize,
76
76
.lang = .lua52,
77
77
.shared = true,
78
78
});
79
79
``````
80
80
81
- The `lua_wrapper ` module will now be available in your code. Here is a simple example that pushes and inspects an integer on the Lua stack:
81
+ The `zlua ` module will now be available in your code. Here is a simple example that pushes and inspects an integer on the Lua stack:
82
82
83
83
```zig
84
84
const std = @import("std");
85
- const lua_wrapper = @import("lua_wrapper ");
85
+ const zlua = @import("zlua ");
86
86
87
- const Lua = lua_wrapper .Lua;
87
+ const Lua = zlua .Lua;
88
88
89
89
pub fn main() anyerror!void {
90
90
// Create an allocator
You can’t perform that action at this time.
0 commit comments