Skip to content

Commit

Permalink
formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
VisenDev committed Feb 12, 2024
1 parent f5b7dc8 commit 155cb76
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions src/tests.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2608,19 +2608,16 @@ test "autoPushFunction" {
try lua.doString(
\\result = foo(1, 2)
);
lua.doString(
try lua.doString(
\\local status, result = pcall(bar, 1, 2)
) catch |err| {
std.debug.print("auto push function error: {!}\n", .{err});
std.debug.print("{s}\n", .{try lua.toString(-1)});
return err;
};
);

//automatic api construction
const my_api = .{
.foo = foo,
.bar = bar,
};

try lua.pushAny(my_api);
lua.setGlobal("api");

Expand Down Expand Up @@ -2673,13 +2670,3 @@ test "array of strings" {
const strings = try lua.autoCall([]const []const u8, "strings", .{});
lua.allocator().free(strings);
}
//
//
//
//
//
//
//
//
//
//

0 comments on commit 155cb76

Please sign in to comment.