I need a way in a C preprocessor #if to test if a value will create a 0-size array
This problem can be solved without any need for preprocessor with a help of anonymous structs introduced in C11. Define the flash type as a union that contains members embedded into anonymous struct. Make char _pad[0x10000] the other member of the union to force the total size of the introduced type. typedef union { struct … Read more