function luaU.ttype(z,a)local U=type(a.value)if U=="\110\117\109\098\101\114"then return z.LUA_TNUMBER elseif U=="\115\116\114\105\110\103"then return z.LUA_TSTRING elseif U=="\110\105\108"then return z.LUA_TNIL elseif U=="\098\111\111\108\101\097\110"then return z.LUA_TBOOLEAN else return z.LUA_TNONE end end

function luaU:ttype(o)
  local tt = type(o.value)
  if tt == "number" then return self.LUA_TNUMBER
  elseif tt == "string" then return self.LUA_TSTRING
  elseif tt == "nil" then return self.LUA_TNIL
  elseif tt == "boolean" then return self.LUA_TBOOLEAN
  else
    return self.LUA_TNONE  -- the rest should not appear
  end
end
