1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
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.
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
31 #define EGS_PD_AST ((void)0)
32 #define EGS_PD_CAST static_cast
35 /// if USE_PDS is defined, we use the Persistant Data service, otherwise, EGS takes full care of persistance
40 /* End of egs_utils.h */