<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1141" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello, I'm learning PyRex and I'm trying to port 
some work already done with Swig to pyrex as an exercise.</FONT></DIV>
<DIV><FONT face=Arial size=2>The first problem I've found is:</FONT></DIV>
<DIV><FONT face=Arial size=2>in the .h I need to wrap I've a lot of #defines of 
values that must be passed to the C calls. I'd like to export thos values to the 
python module.</FONT></DIV>
<DIV><FONT face=Arial size=2>For example I've got #define RIMAGE_BGR24 
0x8001.</FONT></DIV>
<DIV><FONT face=Arial size=2>I declared it in the import part of the pyx file 
because I need it inside the pyrex code.</FONT></DIV>
<DIV><FONT face=Arial size=2>Now what can I do in order to 
mymodule.RIMAGE_BGR24?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Riccardo</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>