* ��table�����鲿�ֵ�ĩβ����ֵ */
| 105 | * ��table�����鲿�ֵ�ĩβ����ֵ |
| 106 | */ |
| 107 | static 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 |
nothing calls this directly
no test coverage detected