mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-03-15 08:37:14 +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)
|
switch (m_Result)
|
||||||
{
|
{
|
||||||
case SI_FAIL:
|
case SI_FAIL:
|
||||||
SqThrowF("Unable to %s. Probably invalid", m_Action.c_str());
|
STHROWF("Unable to %s. Probably invalid", m_Action.c_str());
|
||||||
break;
|
break;
|
||||||
case SI_NOMEM:
|
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;
|
break;
|
||||||
case SI_FILE:
|
case SI_FILE:
|
||||||
SqThrowF("Unable to %s. %s", strerror(errno));
|
STHROWF("Unable to %s. %s", strerror(errno));
|
||||||
break;
|
break;
|
||||||
case SI_OK:
|
case SI_OK:
|
||||||
case SI_UPDATED:
|
case SI_UPDATED:
|
||||||
case SI_INSERTED:
|
case SI_INSERTED:
|
||||||
break; /* These are not error messahes. */
|
break; /* These are not error messahes. */
|
||||||
default:
|
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?
|
// Is the document handle valid?
|
||||||
if (!m_Doc)
|
if (!m_Doc)
|
||||||
SqThrowF("Invalid INI document reference");
|
STHROWF("Invalid INI document reference");
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
@ -75,7 +75,7 @@ Object Document::SaveData(bool signature)
|
|||||||
String source;
|
String source;
|
||||||
// Attempt to save the data to string
|
// Attempt to save the data to string
|
||||||
if (m_Doc->Save(source, signature) < 0)
|
if (m_Doc->Save(source, signature) < 0)
|
||||||
SqThrowF("Unable to save INI document");
|
STHROWF("Unable to save INI document");
|
||||||
// Obtain the initial stack size
|
// Obtain the initial stack size
|
||||||
const StackGuard sg(_SqVM);
|
const StackGuard sg(_SqVM);
|
||||||
// Transform it into a script object
|
// Transform it into a script object
|
||||||
|
Loading…
x
Reference in New Issue
Block a user