Preprocessor Enum test
Preprocessor Enum implementation

Fixes #1390.
Merge pull request #2774 from JakubValtar/preproc-enum

Preproc enum