mirror of
https://github.com/edubart/otclient.git
synced 2025-11-03 20:26:23 +01:00
crash handler, logger and oengles changes
* save log messages to otclient.txt * fixes in FrameBuffer and HardwareBuffer to work with OpenGLES * possibility to get compilation information from lua (compiler version, build date, build revision, build type) * make crash handler more informatave * handle assert crash signals (SIGABRT)
This commit is contained in:
@@ -28,6 +28,17 @@
|
||||
#define DEG_TO_RAD (acos(-1)/180.0)
|
||||
#define RAD_TO_DEC (180.0/acos(-1))
|
||||
|
||||
#define BUILD_COMPILER "gcc "__VERSION__
|
||||
#define BUILD_DATE __DATE__
|
||||
|
||||
#ifndef BUILD_REVISION
|
||||
#define BUILD_REVISION "custom"
|
||||
#endif
|
||||
|
||||
#ifndef BUILD_TYPE
|
||||
#define BUILD_TYPE "unknown"
|
||||
#endif
|
||||
|
||||
namespace Fw
|
||||
{
|
||||
constexpr float pi = 3.14159265;
|
||||
|
||||
Reference in New Issue
Block a user