3 ms·
You should be able to import everything, then use `when` to generate a unified constant name: @(require) import "x_a" @(require) import "x_b" when ODIN_OS ==
by thegeekpirate 1y ago
You should be able to import everything, then use `when` to generate a unified constant name:
@(require) import "x_a"
@(require) import "x_b"
when ODIN_OS == .Windows {
x :: x_a
} else when ODIN_OS == .Linux {
x :: x_b
}
x.do_thing()