mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +01:00
Updated the INI module to include the location for C++ exceptions in source code for debug builds.
This commit is contained in:
parent
1398e5a93d
commit
9d9ec20fe8
@ -84,20 +84,20 @@ void IniResult::Check() const
|
||||
switch (m_Result)
|
||||
{
|
||||
case SI_FAIL:
|
||||
SqThrowF("Unable to %s. Probably invalid", m_Action.c_str());
|
||||
STHROWF("Unable to %s. Probably invalid", m_Action.c_str());
|
||||
break;
|
||||
case SI_NOMEM:
|
||||
SqThrowF("Unable to %s. Ran out of memory", m_Action.c_str());
|
||||
STHROWF("Unable to %s. Ran out of memory", m_Action.c_str());
|
||||
break;
|
||||
case SI_FILE:
|
||||
SqThrowF("Unable to %s. %s", strerror(errno));
|
||||
STHROWF("Unable to %s. %s", strerror(errno));
|
||||
break;
|
||||
case SI_OK:
|
||||
case SI_UPDATED:
|
||||
case SI_INSERTED:
|
||||
break; /* These are not error messahes. */
|
||||
default:
|
||||
SqThrowF("Unable to %s for some unforeseen reason", m_Action.c_str());
|
||||
STHROWF("Unable to %s for some unforeseen reason", m_Action.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -25,7 +25,7 @@ void Document::Validate() const
|
||||
{
|
||||
// Is the document handle valid?
|
||||
if (!m_Doc)
|
||||
SqThrowF("Invalid INI document reference");
|
||||
STHROWF("Invalid INI document reference");
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
@ -75,7 +75,7 @@ Object Document::SaveData(bool signature)
|
||||
String source;
|
||||
// Attempt to save the data to string
|
||||
if (m_Doc->Save(source, signature) < 0)
|
||||
SqThrowF("Unable to save INI document");
|
||||
STHROWF("Unable to save INI document");
|
||||
// Obtain the initial stack size
|
||||
const StackGuard sg(_SqVM);
|
||||
// Transform it into a script object
|
||||
|
Loading…
Reference in New Issue
Block a user