Esempio n. 1
0
  LookupTable* LookupTable::create(STATE, size_t size) {
    LookupTable *tbl;

    tbl = state->new_object<LookupTable>(G(lookuptable));
    tbl->setup(state, size);

    return tbl;
  }
Esempio n. 2
0
  LookupTable* LookupTable::create(STATE, size_t size) {
    LookupTable *tbl;

    tbl = (LookupTable*)state->om->new_object(G(lookuptable),
                                              LookupTable::fields);
    tbl->setup(state, size);

    return tbl;
  }