compiler,plaform: Use unique numbers as internal macro definitions by stotko · Pull Request #139 · stotko/stdgpu (original) (raw)

Macros in the compiler and platform are implemented through magic numbers to distinguish the individual values. However, the ranges of many different groups of macros overlap which leads to unexpected behavior if mixing them up. Use unique identifiers for all valued macros. This fixing potential weird behavior in such cases.

Note that mixing up macros is a bug itself and needs to be fixed. This change helps to unveil such erroneous cases.