Panda3D

config_physics.h
Go to the documentation of this file.
1 /**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file config_physics.h
10 * @author charles
11 * @date 2000-07-17
12 */
13
14 #ifndef CONFIG_PHYSICS_H
15 #define CONFIG_PHYSICS_H
16
17 #include "pandabase.h"
18 #include "notifyCategoryProxy.h"
19 #include "dconfig.h"
20
21 ConfigureDecl(config_physics, EXPCL_PANDA_PHYSICS, EXPTP_PANDA_PHYSICS);
22 NotifyCategoryDecl(physics, EXPCL_PANDA_PHYSICS, EXPTP_PANDA_PHYSICS);
23
24 extern EXPCL_PANDA_PHYSICS void init_libphysics();
25
26 // These macros get stripped out in a non-debug build (like asserts). Use them
27 // like cout but with paranthesis aroud the cout input. e.g. foo_debug("The
28 // value of bar is " << bar);
29 #ifndef NDEBUG //[
30 // Non-release build:
31 #define physics_spam(msg) \
32 if (physics_cat.is_spam()) { \
33 physics_cat->spam() << msg << std::endl; \
34 } else {}
35
36 #define physics_debug(msg) \
37 if (physics_cat.is_debug()) { \
38 physics_cat->debug() << msg << std::endl; \
39 } else {}
40
41 #define physics_info(msg) \
42 physics_cat->info() << msg << std::endl
43
44 #define physics_warning(msg) \
45 physics_cat->warning() << msg << std::endl
46
47 #define physics_error(msg) \
48 physics_cat->error() << msg << std::endl
49 #else //][
50 // Release build:
51 #define physics_spam(msg) ((void)0)
52 #define physics_debug(msg) ((void)0)
53 #define physics_info(msg) ((void)0)
54 #define physics_warning(msg) ((void)0)
55 #define physics_error(msg) ((void)0)
56 #endif //]
57
58 #endif // CONFIG_PHYSICS_H
init_libphysics
EXPCL_PANDA_PHYSICS void init_libphysics()
Initializes the library.
Definition: config_physics.cxx:48
dconfig.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
notifyCategoryProxy.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.