mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-07-02 22:14:37 +00:00
log to console in debug mode; close log properly; really #define _DEBUG for gcc debug builds + gcc _DEBUG compatibility
This commit is contained in:
parent
7f9af044d7
commit
2e4e2941db
4 changed files with 17 additions and 41 deletions
28
BBGE/Base.h
28
BBGE/Base.h
|
@ -152,34 +152,6 @@ enum Direction
|
|||
DIR_MAX = 8
|
||||
};
|
||||
|
||||
#ifdef _DEBUG
|
||||
|
||||
#ifndef _DBG_NEW
|
||||
|
||||
#include <crtdbg.h>
|
||||
|
||||
inline void* __operator_new(size_t __n) {
|
||||
return ::operator new(__n,_NORMAL_BLOCK,__FILE__,__LINE__);
|
||||
}
|
||||
inline void* _cdecl operator new(size_t __n,const char* __fname,int __line) {
|
||||
return ::operator new(__n,_NORMAL_BLOCK,__fname,__line);
|
||||
}
|
||||
inline void _cdecl operator delete(void* __p,const char*,int) {
|
||||
::operator delete(__p);
|
||||
}
|
||||
|
||||
#define _DBG_NEW new(__FILE__,__LINE__)
|
||||
#define new _DBG_NEW
|
||||
|
||||
|
||||
//#endif // _DBG_NEW
|
||||
#else
|
||||
|
||||
#define __operator_new(__n) operator new(__n)
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "Event.h"
|
||||
|
||||
#include "Vector.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue