function luaU.DumpConstants(V,a,k)local l=a.sizek V:DumpInt(l,k)for l=0,l-1,1 do local n=a.k[l]local C=V:ttype(n)V:DumpChar(C,k)if C==V.LUA_TNIL then elseif C==V.LUA_TBOOLEAN then V:DumpChar(n.value and 1 or 0,k)elseif C==V.LUA_TNUMBER then V:DumpNumber(n.value,k)elseif C==V.LUA_TSTRING then V:DumpString(n.value,k)else end end l=a.sizep V:DumpInt(l,k)for l=0,l-1,1 do V:DumpFunction(a.p[l],a.source,k)end end
------------------------------------------------------------------------
-- dump constant pool from function prototype
-- * bvalue(o), nvalue(o) and rawtsvalue(o) macros removed
------------------------------------------------------------------------
function luaU:DumpConstants(f, D)
	local n = f.sizek
	self:DumpInt(n, D)
	for i = 0, n - 1 do
		local o = f.k[i] -- TValue
		local tt = self:ttype(o)
		self:DumpChar(tt, D)
		if tt == self.LUA_TNIL then
		elseif tt == self.LUA_TBOOLEAN then
			self:DumpChar(o.value and 1 or 0, D)
		elseif tt == self.LUA_TNUMBER then
			self:DumpNumber(o.value, D)
		elseif tt == self.LUA_TSTRING then
			self:DumpString(o.value, D)
		else
			--lua_assert(0)  -- cannot happen
		end
	end
	n = f.sizep
	self:DumpInt(n, D)
	for i = 0, n - 1 do
		self:DumpFunction(f.p[i], f.source, D)
	end
end
