Menu

How to get global and extern variables from .cpp file

Help
arya
2015-03-06
2015-03-15
  • arya

    arya - 2015-03-06

    Hi,

    I am not able to figure out how to get global and extern variables when I parse a .cpp file. Any help would be appreciated.

    Thank you

     
  • Jashua Cloutier

    Jashua Cloutier - 2015-03-15

    Use the latest commit 134:03a180869df7

    Then for the examples

    extern int externVar;
    int globalVar;

    You can use the following examples from my testcases

    cppHeader.variables[2]["name"]
    cppHeader.variables[2]["extern"]
    cppHeader.variables[3]["name"]
    cppHeader.variables[3]["extern"]

     

Log in to post a comment.