Logo Search packages:      
Sourcecode: m17n-lib version File versions  Download package

#define M17N_OBJECT_REF_NTIMES ( object,
 ) 

Value:

do {                                                  \
    int i;                                            \
                                                      \
    if (((M17NObject *) (object))->ref_count_extended)                  \
      for (i = 0; i < n; i++)                               \
      m17n_object_ref (object);                             \
    else if (((M17NObject *) (object))->ref_count > 0)                  \
      {                                                     \
      int orig_ref_count = ((M17NObject *) (object))->ref_count;  \
                                                      \
      for (i = 0; i < n; i++)                               \
        if (! ++((M17NObject *) (object))->ref_count)             \
          {                                           \
            ((M17NObject *) (object))->ref_count = orig_ref_count;      \
            for (i = 0; i < n; i++)                         \
            m17n_object_ref (object);                       \
          }                                           \
      }                                                     \
  } while (0)

Definition at line 295 of file internal.h.


Generated by  Doxygen 1.6.0   Back to index