Wraping global variables
Asked by
Sebastian Luther
I'm wrapping an API which uses global variables like this:
namespace N
{
extern X* x;
extern Y y;
extern const Z z;
}
Is there a way to access these, especially without copying them?
Currently I'm writing access functions returning pointers to these variables. But I'd need a lot of these functions to cover the whole API.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- PyBindGen Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Gustavo Carneiro
- Solved:
- Last query:
- Last reply:
To post a message you must log in.