<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">I'm trying to wrap the GET_SEQ_ELEM  macro below can some one give me clues or example how i would go about this easily<br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">with a cffi function like defcfun...If there is no clear way i definately propose an addendum to cffi for wrapping macros<br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;
 background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">#define  CV_SEQ_ELEM( seq, elem_type, index )                    \ <br>/* assert gives some guarantee that <seq> parameter is valid */  \ <br>(   assert(sizeof((seq)->first[0]) == sizeof(CvSeqBlock) &&      \ <br>    (seq)->elem_size == sizeof(elem_type)),                      \ <br>    (elem_type*)((seq)->first && (unsigned)index
 <               \ <br>    (unsigned)((seq)->first->count) ?                            \ <br>    (seq)->first->data + (index) * sizeof(elem_type) :           \ <br>    cvGetSeqElem( (CvSeq*)(seq), (index) ))) <br>#define CV_GET_SEQ_ELEM( elem_type, seq, index ) CV_SEQ_ELEM( (seq), elem_type, (index) )</div></div></body></html>