mirror of https://github.com/libAthena/athena.git
Exception args should be passed as c-string
(it's a compiled literal after-all)
This commit is contained in:
parent
b7d4c51979
commit
b38d7533c5
2
PKGBUILD
2
PKGBUILD
|
@ -1,7 +1,7 @@
|
|||
# PKGBUILD for libAthena
|
||||
_pkgname=libathena
|
||||
pkgname=$_pkgname-git
|
||||
pkgver=2.1.0
|
||||
pkgver=2.2.0.3.g4a688a1
|
||||
pkgrel=1
|
||||
pkgdesc="Basic cross platform IO library"
|
||||
arch=('i686' 'x86_64')
|
||||
|
|
|
@ -112,7 +112,7 @@ typedef Vector2D<float> Vector2Df;
|
|||
#endif // ATHENA_NO_SAKURA
|
||||
} // 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();
|
||||
void atSetExceptionHandler(atEXCEPTION_HANDLER func);
|
||||
|
|
|
@ -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;
|
||||
switch(level)
|
||||
|
|
Loading…
Reference in New Issue