Advertisement
Guest User

Untitled

a guest
Sep 4th, 2012
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.47 KB | None | 0 0
  1. #define CHECK_OBJECT(t,p,k) \
  2.     do {    \
  3.         t _obj; \
  4.         ReflectedEntry e;   \
  5.         e.item = (p);   \
  6.         e.refclass = (k);   \
  7.         mono_domain_lock (domain);  \
  8.         if (!domain->refobject_hash)    \
  9.             domain->refobject_hash = mono_g_hash_table_new_type (reflected_hash, reflected_equal, MONO_HASH_VALUE_GC);  \
  10.         if ((_obj = mono_g_hash_table_lookup (domain->refobject_hash, &e))) {   \
  11.             mono_domain_unlock (domain);    \
  12.             return _obj;    \
  13.         }   \
  14.         mono_domain_unlock (domain); \
  15.     } while (0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement