Author Topic: Can I create aliases for C symbols?  (Read 834 times)

timur

  • Senior Community Member
  • Posts: 192
  • Hero Points: 3
Can I create aliases for C symbols?
« on: April 14, 2020, 07:26:47 pm »
The C-language project I'm working on has the unfortunate habit of creating "aliases" for functions.  That is, the code could have a function call to myfunc(...), but in reality the function is defined as "myfunc_hal".  So the tag files include "myfunc_hal".  Looking up references doesn't work at all, and when I click ctrl-. on "myfunc()" it takes me nowhere.

So is it possible to manually tell Slickedit that myfunc_hal and myfunc are the same function?

I'm using v23 on Linux.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6297
  • Hero Points: 485
Re: Can I create aliases for C symbols?
« Reply #1 on: April 16, 2020, 01:57:37 pm »
You can define either global or workspace specific preprocessing.

Workspace specific preprocessing is added here: Project>Workspace Properties>C/C++ Preprocessing...

Global preprocessing is defined here: Tools>Options>Languages>Application Languages>C/C++>C/C++ Preprocessing.

You will need to rebuild your workspace tag file after making one of these changes.