Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 24 lines (17 sloc) 0.354 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#ifndef RBX_OBJECT_WATCH
#define RBX_OBJECT_WATCH

// #define ENABLE_OBJECT_WATCH

namespace rubinius {
  class Object;

  extern Object* object_watch;

#ifdef ENABLE_OBJECT_WATCH
  static inline bool watched_p(Object* obj) {
    return obj == object_watch;
  }
#else
  static inline bool watched_p(Object* obj) {
    return false;
  }
#endif
}

#endif

Something went wrong with that request. Please try again.