In theide, is it safe if i use macro magic like #include MY_FILE and MY_FILE is defined in some other place? How do you scan then for dependencies without implementing a full preprocessor? This is basically my initial problem. How to solve a dependency if "#include MY_FILE" is used.
Nope, as of now TheIDE doesn't understand macros very well, so this is not really safe. On POSIX platforms you could use "touch" as custom build step to force update of the files with the #include, but that is not portable and in some cases it would result into rebuilding everything all the time...
Actually, the code used to check for dependencies accounts for macros quite well. Otherwise we could not use #include LAYOUTFILE etc...