Skip to content

Commit 703c811

Browse files
authored
Merge pull request #185 from mischief/fix-example
examples: fix multithreaded example callconv
2 parents a3c23ef + 9e65457 commit 703c811

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/multithreaded.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ const zlua = @import("zlua");
77

88
var mutex = std.Thread.Mutex{};
99

10-
export fn lua_zlock(L: *zlua.LuaState) callconv(.C) void {
10+
export fn lua_zlock(L: *zlua.LuaState) callconv(.c) void {
1111
_ = L;
1212
mutex.lock();
1313
}
1414

15-
export fn lua_zunlock(L: *zlua.LuaState) callconv(.C) void {
15+
export fn lua_zunlock(L: *zlua.LuaState) callconv(.c) void {
1616
_ = L;
1717
mutex.unlock();
1818
}

0 commit comments

Comments
 (0)