Marcus Lindblom wrote:
// rtl-configuration data
struct RuntimeConfig
{
RuntimeConfig();
bool operator ==(const RuntimeConfig& r);
bool m_mt;
bool m_dll;
bool m_debug;
};
static bool checkRuntimeConfig(const RuntimeConfig& cfg);
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(...);
}
/Marcus
-------------------------------------------------------
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