Author Topic: get_symbol_references_in_context  (Read 3971 times)

MindprisM

  • Senior Community Member
  • Posts: 127
  • Hero Points: 8
get_symbol_references_in_context
« on: September 16, 2009, 09:28:25 AM »
Basically I want to capture the data triggered by push_ref (ctrl-/), but I (preferably) don't want to have this macro 'cursor through' to each symbol to get the context. In the function below, perhaps line and col are not required.

Can anyone give me a push start on this?

Code: [Select]
void get_symbol_references_in_context(typeless (&outputhash),_str symbol_name, _str file_name, int line=0, int col=0)
{
  //loop through tags db to get reference matches for the given symbol in its context - file, line, col
    // put the data in outputhash
   
  // next match
}