Fixed some C/C++ compiler errors due to stricter checks.
[rubinius.git] / machine / object_watch.hpp
blob346e0d9f8348049fc15c2115f1a6558dcdcbe742
1 #ifndef RBX_OBJECT_WATCH
2 #define RBX_OBJECT_WATCH
4 // #define ENABLE_OBJECT_WATCH
6 namespace rubinius {
7 class Object;
9 extern Object* object_watch;
11 #ifdef ENABLE_OBJECT_WATCH
12 static inline bool watched_p(Object* obj) {
13 return obj == object_watch;
15 #else
16 static inline bool watched_p(Object* obj) {
17 return false;
19 #endif
22 #endif