program arguments in module constructor?

Anders F Björklund afb at algonet.se
Fri May 19 13:43:13 PDT 2006


Johan Granberg wrote:

> I try to avoid it because it's a practice i dislike. But in the end I 
> might do it anyway.

It's a kludge, that's for sure. GLUT has a more sane approach to it.
SDL has some other evil uses of macros in the headers, as well...


As I wrote somewhere else, one alternative is using the Carbon version 
for Mac OS X which is easier to initialize since it is using C and not 
Objecive-C like the Cocoa version. And I guess you also have the X11 ?

In the end, rewriting all macros is probably the most likely to work.
I'm doing the same thing for the "require_" macros that Apple uses...
(expanding the macro for all the ugly ONERRORGOTO that it really is)


I really, really should bundle a new packaged version of SDL and GL.

--anders



More information about the Digitalmars-d mailing list