Extern file containers

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!

4 Likes