May 19, 2006 Re: program arguments in module constructor? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Johan Granberg | 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
|
May 20, 2006 Re: program arguments in module constructor? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Anders F Björklund | Anders F Björklund wrote: > 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 ? Yes but creating a library depending on X11 is probable even worse. X11 is great for porting but new code probably should not use it. or? > > I really, really should bundle a new packaged version of SDL and GL. > > --anders That would bee appreciated. |
Copyright © 1999-2021 by the D Language Foundation