Unsolved How to match #ifdef #endif ?
-
The compiler can identify missing #ifdef #endif pair.
I can manually identify the contents between brackets...I need to identify contents between #ifdef ... #endif pair.
There is a"matchit" package...
Will it help with the task ?
-
I need to identify contents between #ifdef ... #endif pair.
What do you mean with "identify contents"?
There is a"matchit" package...
Where is a "matchit" package?
Will it help with the task ?
I don't understand the task. Please help us to understand what you want by providing a (small) example of what your code looks like and what you would like to achieve.
-
@AnneRanch said in How to match #ifdef #endif ?:
I need to identify contents between #ifdef ... #endif pair.
I need to identify contents between #ifdef ... #endif pair.
in source code#Iifdef THIS
here is the contents between
#endif
If I put mouse on
#ifdefwhat else I have to do to
how it will
go to corresponding
#endif
and highlight t the contents between
#ifdef
#enbdif
?????I can this with matching pair of brackets
-
@AnneRanch said in How to match #ifdef #endif ?:
what else I have to do to
Strg+F, enter '#endif' in the search field
-
Its common practice to just put a single line comment at the end of the initial #ifdef line, then again at the end of the matching #endif, e.g:
#ifdef MY_EXAMPLE //123 ... #endif //123