#?fn(?*anyopaque) callconv(.C) error with zig-imgui

1 messages · Page 1 of 1 (latest)

buoyant dagger
#

Trying to do a "zig build test" on zig-imgui.

Getting an error:

Using latest master of both zig and zig-imgui.

I believe the solution might be obvious to those who have more insight into the c/zig interactions than I do.

Any hints greatly appreciated.

restive sigil
#

I think it you want a function pointer in your struct?

#

If so, probably prefix it with *const fn

buoyant dagger
#

BINGO! That fixes the problem, and the test runs without this particulary error.

Now, I just need to track down a "dependency loop detected"...

#

Thanks again!