We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Is is posible to hide undefined sections? in case of several possible controllers i use something like that:
#define CONTR2 #ifdef CONTR1 ... #else #ifndef CONTR3 ... #endif ...
#endif #if (defined(CONTR2) || defined(CONTR1)) ... #endif
How can I hide all undefined sections in µV4 editor?
The project consits out of over 150 c und h files. The controllers have different behavior, different outputs, inputs external hardware and so on. In case of some drivers i would have nearly the same code for each controller but only with some differecses. So i use the #ifdef swiches.
I found such features in emacs: www.emacs.uniyar.ac.ru/.../emacs159.htm ftp.gnu.org/.../
runemacs.exe => open c file [Alt]x cpp-highlight-buffer
but its very complicatet and it seems to be made for mac or linux freaks
I still hope to make all undefined unvisible or grayed in µV4
Yes, but it may be simpler if you move out the differences into individual header files and just have #ifdef to select which file to load. One line instead of 100 lines with controller or hw differences.
But you may also use a different editor and use uvision just for compilation. Or use command-line compilation integrated into another ide.