#define in swig

G

gianluca

I've a problem with python wrapper of C library. In a library's file
there are #define istruction but I can't access it from python. Other
functio works correctly.
The define istruction is like this:
#define START_OF_D _table_element=_mainsys-
matD,_table_end=_table_element+Dsize(_mainsys)
#define START_OF_X _table_element=_mainsys-
matX,_table_end=_table_element+_mainsys->matXsize
#define START_OF_MAT(set,num)
_table_element=(set),_table_end=_table_element+(num)*_mainsys-
#define END_OF_MAT (_table_element<_table_end)
#define NEXT_OF_MAT _table_element+=_mainsys->setAsize
#define ELEM_OF_MAT _table_element
#define ElemOfRule(rules,num,attr) (rules)[(num)*(_mainsys-
attributes_num)+(attr)]

thanks

Gianluca
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,161
Latest member
GertrudeMa
Top