00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef CONFIG_PHYSICS_H
00016 #define CONFIG_PHYSICS_H
00017
00018 #include "pandabase.h"
00019 #include "notifyCategoryProxy.h"
00020 #include "dconfig.h"
00021
00022 ConfigureDecl(config_physics, EXPCL_PANDAPHYSICS, EXPTP_PANDAPHYSICS);
00023 NotifyCategoryDecl(physics, EXPCL_PANDAPHYSICS, EXPTP_PANDAPHYSICS);
00024
00025 extern EXPCL_PANDAPHYSICS void init_libphysics();
00026
00027
00028
00029
00030 #ifndef NDEBUG //[
00031
00032 #define PHYSICS_DEBUG
00033
00034 #define physics_spam(msg) \
00035 if (physics_cat.is_spam()) { \
00036 physics_cat->spam() << msg << endl; \
00037 } else {}
00038
00039 #define physics_debug(msg) \
00040 if (physics_cat.is_debug()) { \
00041 physics_cat->debug() << msg << endl; \
00042 } else {}
00043
00044 #define physics_info(msg) \
00045 physics_cat->info() << msg << endl
00046
00047 #define physics_warning(msg) \
00048 physics_cat->warning() << msg << endl
00049
00050 #define physics_error(msg) \
00051 physics_cat->error() << msg << endl
00052 #else //][
00053
00054 #undef PHYSICS_DEBUG
00055
00056 #define physics_spam(msg) ((void)0)
00057 #define physics_debug(msg) ((void)0)
00058 #define physics_info(msg) ((void)0)
00059 #define physics_warning(msg) ((void)0)
00060 #define physics_error(msg) ((void)0)
00061 #endif //]
00062
00063 #define audio_error(msg) \
00064 audio_cat->error() << msg << endl
00065
00066 #endif // CONFIG_PHYSICS_H