The current enum_generator.py was leaking an "if", if into the
resulting output in this case:
typedef enum {
NSOpenGLCPSwapRectangle = 200, /* Set or get the swap
rectangle {x, y, w, h} */
NSOpenGLCPSwapRectangleEnable = 201, /* Enable or disable
the swap rectangle */
NSOpenGLCPRasterizationEnable = 221, /* Enable or disable
all rasterization */
NSOpenGLCPSwapInterval = 222, /* 0 -> Don't sync, n
-> Sync every n retrace */
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_2
NSOpenGLCPSurfaceOrder = 235, /* 1 -> Above Window
(default), -1 -> Below Window */
NSOpenGLCPSurfaceOpacity = 236, /* 1-> Surface is
opaque (default), 0 -> non-opaque */
#endif
NSOpenGLCPStateValidation = 301 /* Validate state for
multi-screen functionality */
} NSOpenGLContextParameter;
I committed an extremely bogus patch to fix this problem.
b.bum
|