[Cython] #define, or equivalent?

Brian Blais bblais at gmail.com
Mon May 11 12:01:32 CEST 2009


Hello,

I have a number of arrays that need to be some maximum size, and I  
was wondering if there is some way to define that size at the top of  
the code, the equivalent of:

#define MAXSIZE 10

I haven't seen any examples of this.  So far I have just put the  
number in manually, like:

cdef a[10],b[10],c[10]

but I'd rather have:

cdef a[MAXSIZE],b[MAXSIZE],c[MAXSIZE]

is there a way of doing that?


		thanks,

				Brian Blais

--
Brian Blais
bblais at gmail.com
http://web.bryant.edu/~bblais

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/cython-dev/attachments/20090511/3a02dd3f/attachment.htm 


More information about the Cython-dev mailing list