Searched refs:FromUpValue (Results 1 – 2 of 2) sorted by relevance
/external/libtextclassifier/utils/ |
D | lua-utils.cc | 58 return FromUpValue<Iterator *>(kIteratorArgId, state)->Next(state); in NextCallback() 62 return FromUpValue<Iterator *>(kIteratorArgId, state)->Length(state); in LengthCallback() 66 return FromUpValue<Iterator *>(kIteratorArgId, state)->Item(state); in ItemCallback() 70 return FromUpValue<Iterator *>(kIteratorArgId, state)->Iteritems(state); in IteritemsCallback() 91 FromUpValue<reflection::Schema *>(kSchemaArgId, state); in GetFieldCallback() 93 FromUpValue<reflection::Object *>(kTypeArgId, state); in GetFieldCallback() 95 FromUpValue<flatbuffers::Table *>(kTableArgId, state); in GetFieldCallback()
|
D | lua-utils.h | 56 T FromUpValue(const int index, lua_State *state) { in FromUpValue() function 118 lua_pushinteger(state, FromUpValue<T *>(kItemsArgId, state)->size()); in Length() 123 return Next(FromUpValue<T *>(kItemsArgId, state), in Next() 145 const T *items = FromUpValue<T *>(kItemsArgId, state); in Item() 255 T *env = FromUpValue<T *>(1, state); in Dispatch()
|