From: Florent <rao...@wa...> - 2009-03-21 20:53:27
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> I've a function declaration :<br> <br> <i>long _stdcall <b>AISample</b>(long *idnum,<br> long demo,<br> long *stateIO,<br> long updateIO,<br> long ledOn,<br> long numChannels,<br> long *channels,<br> long *gains,<br> long disableCal,<br> long *overVoltage,<br> float *voltages);</i><br> <br> long *stateIO, long *channels, long *gains are pointer to INOUT arrays. I want to wrap this for Lua and have a "<i>expected 'long *' got 'table'</i>" problem... I think my mess is in the typemath.<br> After including <typemaps.i> for lua, I try this %apply :<br> <br> %apply (long INOUT[ANY]) {(long* channels)}<br> <br> But of course, it dosn't match... How can I declare this typemap ?<br> </body> </html> |