Exception args should be passed as c-string

(it's a compiled literal after-all)
This commit is contained in:
Jack Andersen 2015-07-25 16:50:43 -10:00 committed by Phillip Stephens
parent b7d4c51979
commit b38d7533c5
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# PKGBUILD for libAthena # PKGBUILD for libAthena
_pkgname=libathena _pkgname=libathena
pkgname=$_pkgname-git pkgname=$_pkgname-git
pkgver=2.1.0 pkgver=2.2.0.3.g4a688a1
pkgrel=1 pkgrel=1
pkgdesc="Basic cross platform IO library" pkgdesc="Basic cross platform IO library"
arch=('i686' 'x86_64') arch=('i686' 'x86_64')

View File

@ -112,7 +112,7 @@ typedef Vector2D<float> Vector2Df;
#endif // ATHENA_NO_SAKURA #endif // ATHENA_NO_SAKURA
} // Athena } // Athena
typedef void (*atEXCEPTION_HANDLER)(const Athena::error::Level& level, const std::string& file, const std::string& function, int line, const char* fmt, ...); typedef void (*atEXCEPTION_HANDLER)(const Athena::error::Level& level, const char* file, const char* function, int line, const char* fmt, ...);
atEXCEPTION_HANDLER atGetExceptionHandler(); atEXCEPTION_HANDLER atGetExceptionHandler();
void atSetExceptionHandler(atEXCEPTION_HANDLER func); void atSetExceptionHandler(atEXCEPTION_HANDLER func);

View File

@ -41,7 +41,7 @@ std::ostream& operator<<(std::ostream& os, const Athena::Endian& endian)
} }
static void __defaultExceptionHandler(const Athena::error::Level& level, const std::string& file, const std::string& function, int line, const char* fmt, ...) static void __defaultExceptionHandler(const Athena::error::Level& level, const char* file, const char* function, int line, const char* fmt, ...)
{ {
std::string levelStr; std::string levelStr;
switch(level) switch(level)