1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-11-07 09:47:18 +01:00

Migrated the host module to C++ exceptions as well.

Also enabled the latest C++ revision in the project.
Replaced the Random library with the one provided by C++11.
Implemented a simple AES256 encryption class.
Various other fixes and improvements.
This commit is contained in:
Sandu Liviu Catalin
2016-03-10 05:57:13 +02:00
parent 3162221e7f
commit 70e5f0ba21
124 changed files with 14873 additions and 14062 deletions

View File

@@ -147,22 +147,6 @@ void Logger::Message(Uint8 type, bool sub, CCStr fmt, ...)
va_end(args);
}
// ------------------------------------------------------------------------------------------------
void Logger::Throw(CCStr fmt, ...)
{
va_list args;
va_start(args, fmt);
m_Buffer.WriteF(0, fmt, args);
va_end(args);
Error::Throw(DefaultVM::Get(), m_Buffer.Data());
}
void Logger::Throw(CCStr fmt, va_list args)
{
m_Buffer.WriteF(0, fmt, args);
Error::Throw(DefaultVM::Get(), m_Buffer.Data());
}
// ------------------------------------------------------------------------------------------------
void Logger::Debug(CCStr fmt, ...)
{
@@ -382,18 +366,6 @@ SQMOD_CLOG(cLogSWrn, LL_WRN, true)
SQMOD_CLOG(cLogSErr, LL_ERR, true)
SQMOD_CLOG(cLogSFtl, LL_FTL, true)
// ------------------------------------------------------------------------------------------------
void SqThrow(CCStr fmt, ...)
{
va_list args;
va_start(args, fmt);
if (_Log)
_Log->Throw(fmt, args);
else
vprintf(fmt, args);
va_end(args);
}
// --------------------------------------------------------------------------------------------
void OutputMessageImpl(const char * msg, va_list args)
{