4

if the code is :

#ifdef ABC

code();

#endif

I want to access the function code() using Open Declaration. How can I do this without defining ABC in source code..

Ciro Santilli OurBigBook.com
  • 347,512
  • 102
  • 1,199
  • 985
abc
  • 41
  • 1
  • 2

2 Answers2

2

Actually for me, this worked.. Have a lot of weird make files throughout the project..

Project -> Properties -> C/C++ General -> Path and Symbols -> Symbols Tab -> Add...

Turn off Show built-in-values to avoid confusion. Make sure your correct build Configuration is set above.

Hit Apply...

You will know it worked if it asks to rebuild the Index.

Indigo (3.7)

EdH
  • 3,194
  • 3
  • 21
  • 23
1

Go into "Project/Properties…" to open the configuration for your project.

After that, go into "C/C++ Build", then "Build Variables". Then add an "ABC" variable.

Jean Hominal
  • 16,518
  • 5
  • 56
  • 90