Branch: Tag:

2013-06-11

2013-06-11 20:22:57 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added macro REFCOUNTED_TYPE().

This is to simplify renumbering of the types.

148:   void debug_malloc_dump_fd(int fd);   #define dmalloc_touch_svalue(X) do { \    const struct svalue *_tmp = (X); \ -  if (TYPEOF(*_tmp) <= MAX_REF_TYPE) { \ +  if (REFCOUNTED_TYPE(TYPEOF(*_tmp))) { \    debug_malloc_touch(_tmp->u.refs); \    } \    } while(0)   #define dmalloc_touch_svalue_named(X,NAME) do { \    const struct svalue *_tmp = (X); \ -  if (TYPEOF(*_tmp) <= MAX_REF_TYPE) { \ +  if (REFCOUNTED_TYPE(TYPEOF(*_tmp))) { \    debug_malloc_touch_named(_tmp->u.refs,NAME); \    } \    } while(0)