client: enable C++ exceptions

This commit is contained in:
Alibek Omarov 2023-09-09 02:46:20 +03:00
parent 3bf40d193b
commit 5cf05e3134
2 changed files with 7 additions and 4 deletions

View File

@ -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;
}

View File

@ -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)