#Importing same source file with different parameters
1 messages · Page 1 of 1 (latest)
1 messages · Page 1 of 1 (latest)
I have these decls at the top of a source file:
const BLOCK_SIZE = 8;
const PALETTE_MAX = 16384;
const Dimension = u16;
I want these to be able to be altered by the user independently for each import of this source file in the root source file.
What's the best way to achieve this?
a function that returns the struct type depending on those parameters