Resolve "Toggle Free Look with Hotkey"
[ryzomcore.git] / ryzom / server / src / gameplay_module_lib / module_utils.h
blob360cb7807c567987c915dd7aecb9a6e2d2b870c9
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_MODULE_UTILS_H
18 #define RY_MODULE_UTILS_H
20 #include "nel/misc/types_nl.h"
22 // comment / uncomment that to have a debug version of the library
23 #define RY_MODULE_DEBUG
26 #ifdef RY_MODULE_DEBUG
27 inline void MODULE_INFO(const char*,...) {}
28 #define MODULE_AST nlassert
29 #define MODULE_CAST static_cast
30 #else
31 inline void MODULE_INFO(const char*,...) {}
32 inline void MODULE_AST(const char*,...) {}
33 #define MODULE_CAST dynamic_cast
34 #endif
37 #endif