File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 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.
4646pub fn build(b: *std.Build) void {
4747 // ... snip ...
4848
49- const lua_dep = b.dependency("lua_wrapper ", .{
49+ const lua_dep = b.dependency("zlua ", .{
5050 .target = target,
5151 .optimize = optimize,
5252 });
5353
5454 // ... snip ...
5555
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 "));
5858
5959}
6060```
@@ -70,21 +70,21 @@ There are currently three additional options that can be passed to `b.dependency
7070For example, here is a ` b.dependency() ` call that and links against a shared Lua 5.2 library:
7171
7272``` zig
73- const lua_wrapper = b.dependency("lua_wrapper ", .{
73+ const zlua = b.dependency("zlua ", .{
7474 .target = target,
7575 .optimize = optimize,
7676 .lang = .lua52,
7777 .shared = true,
7878});
7979``````
8080
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:
8282
8383```zig
8484const std = @import("std");
85- const lua_wrapper = @import("lua_wrapper ");
85+ const zlua = @import("zlua ");
8686
87- const Lua = lua_wrapper .Lua;
87+ const Lua = zlua .Lua;
8888
8989pub fn main() anyerror!void {
9090 // Create an allocator
You can’t perform that action at this time.
0 commit comments