fix warning in __cudaKernel

- fix warning if we use expression like 1==2?:10
- move preprocessor definition to ppFunctions.hpp