admin管理员组

文章数量:1402995

Given the below code, how would I access the myVar declaration, using pygccxml?

#include <windows.h>

void someFunction()
{
    LPBYTE myVar;
}

Given the below code, how would I access the myVar declaration, using pygccxml?

#include <windows.h>

void someFunction()
{
    LPBYTE myVar;
}
Share Improve this question edited Mar 23 at 15:41 mkrieger1 23.5k7 gold badges64 silver badges82 bronze badges asked Mar 23 at 14:19 fwrgcannpvefwrgcannpve 32 bronze badges 5
  • Have you seen pygccxml.readthedocs.io/en/develop/examples/variables/… already? – mkrieger1 Commented Mar 23 at 15:43
  • @mkrieger1 Yes. This example shows accessing declarations inside namespaces, not functions. – fwrgcannpve Commented Mar 23 at 15:58
  • Have you tried using other attributes of the global namespace than .namespace? – mkrieger1 Commented Mar 23 at 16:11
  • Yes, I have. Not sure if you are implying that there is an attribute that I’ve missed, or just asking to help me solve it myself? – fwrgcannpve Commented Mar 23 at 16:31
  • No, sorry, I didn't mean to imply that you missed an attribute, I don't know it myself. I was just trying to narrow down what you already know and where you are stuck. – mkrieger1 Commented Mar 23 at 16:34
Add a comment  | 

1 Answer 1

Reset to default 1

According to pygccxml FAQ, this feature is not currently supported.

本文标签: pythonHow do I access declarations (such as variables) inside a function using pygccxmlStack Overflow