Add infos into target window
[ryzomcore.git] / ryzom / server / src / entities_game_service / egs_utils.h
blobdbb35bbdd28f52ad8d8b0ba608195ad43003eb64
1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #ifndef RY_EGS_UTILS_H
18 #define RY_EGS_UTILS_H
20 #include "nel/misc/debug.h"
22 /// if defined, the EGS persistant data generated by the PDS will be in debug mode
23 /// It should only concern dynamic_casts from PD genrated type to EGS types
24 #define RY_EGS_PD_DEBUG
26 /// assert and cast that must be used to test the PD generated class
27 #ifdef RY_EGS_PD_DEBUG
28 #define EGS_PD_AST nlassert
29 #define EGS_PD_CAST dynamic_cast
30 #else
31 #define EGS_PD_AST ((void)0)
32 #define EGS_PD_CAST static_cast
33 #endif
35 /// if USE_PDS is defined, we use the Persistant Data service, otherwise, EGS takes full care of persistance
36 //#define USE_PDS
38 #endif // egs_utils
40 /* End of egs_utils.h */