#casting comptime known int to *opaque{}
1 messages · Page 1 of 1 (latest)
What is exactly your problem? I don't have an example of exactly this situation but here's a similar one: https://github.com/vadim-za/zt4i-libs/blob/main/gui/win32/window/class.zig#L97
Does this answer your question (which you didn't explicitly ask)?
I'm sorry that i didn't explicitly ask the question but what i was really wondering about is since built in functions return *anyopaque but externed windows functions require pointer to opaque{} would it still work
I'm still not sure what the question is. You said yourself, the argument is a comptime int. The formal argument type is whatever you declare FillRect to or whatever the library you're using is declaring it to (I don't think there is a standard). So what is exactly your situation?