The code below doesn't show an error, but the #elif directive just seem to be ignored. #if MODE == 1 include "file1.asm" #elif MODE == 2 include "file2.asm" #else include "file3.asm" #endif