Skip to content

Commit 1b81ccc

Browse files
committed
fix(c): correct return type of webui_get_context
- change return type from `*anyopaque` to `?*anyopaque` to allow null pointers
1 parent 7bac77b commit 1b81ccc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/c.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ pub extern fn webui_set_context(
8484
/// }
8585
pub extern fn webui_get_context(
8686
e: *Event,
87-
) callconv(.C) *anyopaque;
87+
) callconv(.C) ?*anyopaque;
8888

8989
/// @brief Get the recommended web browser ID to use. If you
9090
/// are already using one, this function will return the same ID.

0 commit comments

Comments
 (0)