MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / tappend

Function tappend

src/Chain/libraries/glua/ltablib.cpp:107–115  ·  view source on GitHub ↗

* ��table�����鲿�ֵ�ĩβ����ֵ */

Source from the content-addressed store, hash-verified

105 * ��table�����鲿�ֵ�ĩβ����ֵ
106 */
107static int tappend(lua_State *L) {
108 lua_Integer e = aux_getn(L, 1, TAB_RW) + 1; /* first empty element */
109 lua_Integer pos; /* where to insert new element */
110 if(lua_gettop(L)<2)
111 return luaL_error(L, "wrong number of arguments to 'append'");
112 pos = e;
113 lua_seti(L, 1, pos); /* t[pos] = v */
114 return 0;
115}
116
117
118

Callers

nothing calls this directly

Calls 3

lua_gettopFunction · 0.85
luaL_errorFunction · 0.85
lua_setiFunction · 0.85

Tested by

no test coverage detected