We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44a7786 commit 839b0d9Copy full SHA for 839b0d9
sh_messagepack.lua
@@ -26,6 +26,13 @@ local ldexp = math.ldexp
26
local huge = math.huge
27
local tconcat = table.concat
28
29
+local oldType = type
30
+local isColor = IsColor
31
+local function type(var)
32
+ if isColor(var) then return "Color" end
33
+ return oldType(var)
34
+end
35
+
36
local function argerror(caller, narg, extramsg)
37
error("bad argument #" .. tostring(narg) .. " to " .. caller .. " (" .. extramsg .. ")")
38
end
0 commit comments