There is currently no way to declare a file struct as extern
. You will have to use a regular declaration: const MyStruct = extern struct {foo: u8};
Related: Gotchas when using a file as a struct?
Welcome to ziggit!
There is currently no way to declare a file struct as extern
. You will have to use a regular declaration: const MyStruct = extern struct {foo: u8};
Related: Gotchas when using a file as a struct?
Welcome to ziggit!