ENTER_GL and ActivateContext question

Michael Stefaniuc mstefani at redhat.com
Fri Dec 14 03:55:10 CST 2007


Stefan Dösinger wrote:
> Am Freitag, 14. Dezember 2007 02:46:42 schrieb Ivan Gyurdiev:
>> As for the "object oriented programmer" - I would hope every programmer
>> thinks in terms of objects, even when writing C code.
>> The GLSL backend wouldn't be available today if the shader compiler was
>> still a big series of if statements.
> This is true; And the rest of the code isn't a collection of if statements 
> either(BltOverride is, but that should be fixed). If we had proper C++, then 
> we could have the compiler inline the getters and setters, however, with the 
> current C setup we can't do that(unless we write a bunch of macros or extra 
> inline functions, which doesn't really help maintainability either).
I don't know what you mean with proper inline. It's true that "inline"
is only a hint to the compiler but normally the compiler knows anyway
better what to inline and what not.

If you really want to force an inline you have the
__attribute__((always_inline))

bye
	michael
-- 
Michael Stefaniuc                           Tel.: +49-711-96437-199
Consulting Communications Engineer          Fax.: +49-711-96437-111
--------------------------------------------------------------------
Reg. Adresse: Red Hat GmbH, Hauptstätter Strasse 58, 70178 Stuttgart
Handelsregister: Amtsgericht Stuttgart HRB 153243
Geschäftsführer: Brendan Lane, Charlie Peters, Michael Cunningham,
                 Werner Knoblich



More information about the wine-devel mailing list