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:
Eduardo Bart
2012-03-22 09:57:43 -03:00
parent 28633a9e20
commit 3ad97c9eab
14 changed files with 128 additions and 63 deletions

View File

@@ -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;