remove duplicated function
Protect multiline macro function definitions

unprotected macro functions are incompatible with inline "if (use_opencl) MACRO_FCT()" ...
finish removing unused textures from kernels calls