forked from vera/halflife-thewastes-sdk
client: enable C++ exceptions
This commit is contained in:
parent
3bf40d193b
commit
5cf05e3134
2 changed files with 7 additions and 4 deletions
|
@ -748,11 +748,14 @@ try
|
|||
pfile = gEngfuncs.COM_ParseFile(pfile, token);
|
||||
}
|
||||
}
|
||||
catch( CException *e )
|
||||
catch( ... /* CException *e */ )
|
||||
{
|
||||
e;
|
||||
// a1ba: we don't do anything with the exception here
|
||||
// and code above doesn't look like a code that would throw an exception
|
||||
// so comment out CException
|
||||
// e;
|
||||
//e->Delete();
|
||||
e = NULL;
|
||||
// e = NULL;
|
||||
m_iInitialized = false;
|
||||
return;
|
||||
}
|
||||
|
|
2
wscript
2
wscript
|
@ -203,7 +203,7 @@ def configure(conf):
|
|||
elif conf.env.COMPILER_CC == 'owcc':
|
||||
pass
|
||||
else:
|
||||
conf.env.append_unique('CXXFLAGS', ['-Wno-invalid-offsetof', '-fno-exceptions'])
|
||||
conf.env.append_unique('CXXFLAGS', ['-Wno-invalid-offsetof'])
|
||||
conf.define('stricmp', 'strcasecmp', quote=False)
|
||||
conf.define('strnicmp', 'strncasecmp', quote=False)
|
||||
conf.define('_snprintf', 'snprintf', quote=False)
|
||||
|
|
Loading…
Reference in a new issue