示例#1
0
  LookupTable* LookupTable::create(STATE, size_t size) {
    LookupTable *tbl;

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

    return tbl;
  }
示例#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;
  }