jbe/bsw@0: --[[-- jbe/bsw@6: slot.put_into( jbe@198: slot_ident, -- name of a slot jbe@198: string1, -- string to be written into the named slot jbe@198: string2, -- another string to be written into the named slot jbe/bsw@0: ... jbe/bsw@0: ) jbe/bsw@0: jbe/bsw@0: This function is used to write strings into a named slot. jbe/bsw@0: jbe/bsw@0: -- NOTE: ACCELERATED FUNCTION jbe/bsw@0: -- Do not change unless also you also update webmcp_accelerator.c jbe/bsw@0: jbe/bsw@0: --]]-- jbe/bsw@0: jbe/bsw@0: function slot.put_into(slot_ident, ...) jbe/bsw@0: local t = slot._data[slot_ident].string_fragments jbe/bsw@0: for i = 1, math.huge do jbe/bsw@0: local v = select(i, ...) jbe/bsw@0: if v == nil then break end jbe/bsw@0: t[#t + 1] = v jbe/bsw@0: end jbe@198: end