Backport processors: and types: to original cwrap
zdevito opened this issue · 1 comments
zdevito commented
removed defined_if that is related only to processors/types and processor_types_pairs. Write a plugin that generates defined_if from the processor/types info.
- write the plugin to generated a new defined_if and check via #ifdefs that it is the same as the original defined if
#ifdef ORIGINAL_DEFINED_IF
#ifndef NEW_DEFINED_IF
#error "wrong!"
#endif
#endif
#ifdef NEW_DEFINED_IF
#ifndef ORIGINAL_DEFINED_IF
#error "wrong!"
#endif
#endif
- remove the old defined_if and enable the plugin.