nanogui: Pending patches/bug/requests ... list available on the FTP
Subject:
Re: [nanogui] Pending patches/bug/requests ... list available on the FTP
From:
Alexander Neundorf ####@####.####
Date:
28 May 2005 08:12:42 +0100
Message-Id: <200505280912.38940.neundorf@kde.org>
On Saturday 28 May 2005 08:50, Alain Volmat wrote:
...
> I have to admit that it is the first time I hear about this constructor
> attribute ... after a bit of googling I understand what it does and it
> seems to be quite good for this case. However does using such attribute
> will not make problem on some platform ? (I lack of information about it so
> I can't really judge) If no, then I think since solution if much better
> than the dirty #ifdef solution.
Same here, that's why I'm not sure it's really better.
Is microwindows also used with compilers other than gcc ? If yes, then it's
probably no option.
In C++ it would be easy to do, simply put the following in any object file:
class Fb8DriverInitializer
{
public:
Fb8DriverInitializer()
{global_driver_table_append(&fb8_driver_struct);};
}
Fb8DriverInitializer fb8DriverInitializer;
When the program starts, the global variables will be initialized and this way
automatically the constructors will be executed.
Bye
Alex
--
Work: ####@####.#### - http://www.jenoptik-los.de
Home: ####@####.#### - http://www.kde.org
####@####.#### - http://www.neundorf.net