Hi Marcus,
On Thu, 2006-02-16 at 17:24 +0100, Marcus Lindblom wrote:
>
> I forgot that, in order to make this work, you need some to force the
> evaluation of this. You could include something like the following, to
> check it from every file during app-startup (pre-main).
>
> struct CheckRuntimeConfig{
> CheckRuntimeConfig() { checkRuntimeConfig(runtimeConfig()); }
> };
> static CheckRuntimeConfig CheckRuntimeConfig_Instance;
>
> Or just do something this to check it when intializing:
>
> inline void osginit(...)
> {
> checkRuntimeConfig(runtimeConfig());
> osginitimpl(...);
> }
Will that always work in debug mode? AFAIUI compilers don't have to
inline stuff in debug mode, so if this is turned into a regular function
it would be compiled into the lib.
Can anybody comment on this?
Dirk
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users