You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this should be solved by #265, but in the mean time, i can't think of a correct solution that doesn't require a comptime, an allocator, of the user null-terminating the string themselves.
One thing you can do for now is have a buffer on the stack with, say, 512 bytes. If the length is too big for this return error.NameTooLong or similar. We can always improve this API later.
In here : https://github.com/ziglang/zig/blob/master/std/dynamic_library.zig#L197 , the function lookup should either : receive a C String as an input (c"MyLookupName") or reformat the Zig String input to C String. This is because GetProcAddress expects a C String.
The text was updated successfully, but these errors were encountered: