diff options
author | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-11-19 03:05:16 +0000 |
---|---|---|
committer | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-11-19 03:05:16 +0000 |
commit | aee3755b6d780c3261bdec2aef4d517bc7c7b148 (patch) | |
tree | 71dd1e301aab7780c23db9dd62de0ce7ce85a1d8 /src/common/cbasetypes.h | |
parent | a0a93b21ebfbf51e3926a6819b46632703c33d90 (diff) | |
download | hercules-aee3755b6d780c3261bdec2aef4d517bc7c7b148.tar.gz hercules-aee3755b6d780c3261bdec2aef4d517bc7c7b148.tar.bz2 hercules-aee3755b6d780c3261bdec2aef4d517bc7c7b148.tar.xz hercules-aee3755b6d780c3261bdec2aef4d517bc7c7b148.zip |
* Nullpo's disabled on release builds.
* Added timestamps to the log of memory leaks.
* Moved definition of __func__ to cbasetypes.h.
* Configure script updated:
- added option to select the memory manager
- added option to enable MAPREGSQL
- added option to enable DEBUG
* common's Makefile deleting svnversion.h on 'clean' target.
(run ./configure again to update your Makefile)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11760 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/cbasetypes.h')
-rw-r--r-- | src/common/cbasetypes.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/common/cbasetypes.h b/src/common/cbasetypes.h index d31d515a8..557e263fb 100644 --- a/src/common/cbasetypes.h +++ b/src/common/cbasetypes.h @@ -52,6 +52,18 @@ #define DEBUG #endif +// debug function name +#ifndef __NETBSD__ +#if __STDC_VERSION__ < 199901L +# if __GNUC__ >= 2 +# define __func__ __FUNCTION__ +# else +# define __func__ "" +# endif +#endif +#endif + + // disable attributed stuff on non-GNU #if !defined(__GNUC__) && !defined(MINGW) # define __attribute__(x) |