mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
#Remove routines
This commit is contained in:
@@ -426,10 +426,12 @@ UTILS.BasicSerialize = function(s)
|
||||
if s == nil then
|
||||
return "\"\""
|
||||
else
|
||||
if ((type(s) == 'number') or (type(s) == 'boolean') or (type(s) == 'function') or (type(s) == 'table') or (type(s) == 'userdata') ) then
|
||||
if ((type(s) == 'number') or (type(s) == 'boolean') or (type(s) == 'function') or (type(s) == 'userdata') ) then
|
||||
return tostring(s)
|
||||
elseif type(s) == "table" then
|
||||
return UTILS._OneLineSerialize(s)
|
||||
elseif type(s) == 'string' then
|
||||
s = string.format('%q', s)
|
||||
s = string.format('(%s)', s)
|
||||
return s
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user