Looking for a utility that lists all the functions under apreprocessing directive in a C++ file .

Discussion in 'Perl Misc' started by Avi, Apr 18, 2008.

  1. Avi

    Avi Guest

    I'm looking for a utility that will scan a C++ file and list all the
    functions under a preprocessing directive.

    In the example code below:
    Upon request to list all the files under the preprocessing directive
    AAA
    the utiltiy should report
    foo1
    foo2

    Upon request to list all the files under the preprocessing directive
    BBB
    the utiltiy should report
    foo3

    Thanks,
    Avi

    main()
    {
    }

    #ifdef AAA

    foo1()
    {
    }

    foo2()
    {
    }

    #endif

    #ifdef BBB

    foo3()
    {
    }

    #endif

    -----------------------------------------------------------
     
    Avi, Apr 18, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Neil Zanella

    accessing user defined utility functions

    Neil Zanella, Jan 18, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    1,152
  2. Martin Gill
    Replies:
    0
    Views:
    1,604
    Martin Gill
    Oct 14, 2004
  3. =?UTF-8?B?w4FuZ2VsIEd1dGnDqXJyZXogUm9kcsOtZ3Vleg==

    List of lists of lists of lists...

    =?UTF-8?B?w4FuZ2VsIEd1dGnDqXJyZXogUm9kcsOtZ3Vleg==, May 8, 2006, in forum: Python
    Replies:
    5
    Views:
    441
    =?UTF-8?B?w4FuZ2VsIEd1dGnDqXJyZXogUm9kcsOtZ3Vleg==
    May 15, 2006
  4. Paavo Helde
    Replies:
    3
    Views:
    281
    Pete Becker
    May 22, 2007
  5. Replies:
    0
    Views:
    643
Loading...

Share This Page