RUB7L6GYFGVH7NMTWSZWLPFVEMJRVDDK75R45ZA3EVRPHGBO5SKAC RXMHAZ6VL4EJMYEZM32G4W54EPF3BPWPIGASJ7ND45FJ5F6TJCZAC VS5HRXU6364AZ6JT26Z56XO4PQTSEPXV2LQV7SUCCZVVPWXOFRCAC AHNBMC7IPEFFNDYZDZRXPDAHPAX5PIAOUFIO2LVPOAJL3AX4YYQAC R5QXEHUIZLELJGGCZAE7ATNS3CLRJ7JFRENMGH4XXH24C5WABZDQC KKMFQDR43ZWVCDRHQLWWX3FCWCFA3ZSXYOBRJNPHUQZR2XPKWULAC TBTRYEBPU7OOMGLGMFM6KF7CXXKH5R6YGAOOPGRLCJGRO7NN44VAC JOPVPUSAMMU6RFVDQR4NJC4GNNUFB7GPKVH7OS5FKCYS5QZ53VLQC seen = seen or {}if seen[obj] then return seen[obj] endseen[obj] = resultresult[deepcopy(k, seen)] = deepcopy(v, seen)endreturn resultendfunction minmax(a, b)return math.min(a,b), math.max(a,b)endfor k,v in pairs(obj) dolocal result = setmetatable({}, getmetatable(obj))
local info = debug.getinfo(stack_frame_index, 'Sl')local msgif type(obj) == 'string' thenmsg = objelsemsg = json.encode(obj)endlove.filesystem.append('log', info.short_src..':'..info.currentline..': '..msg..'\n')if stack_frame_index == nil thenstack_frame_index = 3end-- I'd like to use the unicode character \u{250c} here, but it doesn't work-- in OpenBSD.log(stack_frame_index, '[ u250c ' .. name)if stack_frame_index == nil thenstack_frame_index = 3end-- I'd like to use the unicode character \u{2518} here, but it doesn't work-- in OpenBSD.log(stack_frame_index, '] u2518 ' .. name)if stack_frame_index == nil thenstack_frame_index = 4endlog_end(name, stack_frame_index)log_start(name, stack_frame_index)endendfunction log_new(name, stack_frame_index)endfunction log_end(name, stack_frame_index)end-- for section delimiters we'll use specific Unicode box charactersfunction log_start(name, stack_frame_index)
local info = debug.getinfo(stack_frame_index, 'Sl')local msgif type(obj) == 'string' thenmsg = objelsemsg = json.encode(obj)endlove.filesystem.append('log', info.short_src..':'..info.currentline..': '..msg..'\n')
local info = debug.getinfo(stack_frame_index, 'Sl')local msgif type(obj) == 'string' thenmsg = objelsemsg = json.encode(obj)endlove.filesystem.append('log', info.short_src..':'..info.currentline..': '..msg..'\n')
if stack_frame_index == nil thenstack_frame_index = 3end-- I'd like to use the unicode character \u{250c} here, but it doesn't work-- in OpenBSD.log(stack_frame_index, '[ u250c ' .. name)
if stack_frame_index == nil thenstack_frame_index = 3end-- I'd like to use the unicode character \u{250c} here, but it doesn't work-- in OpenBSD.log(stack_frame_index, '[ u250c ' .. name)
if stack_frame_index == nil thenstack_frame_index = 3end-- I'd like to use the unicode character \u{2518} here, but it doesn't work-- in OpenBSD.log(stack_frame_index, '] u2518 ' .. name)
if stack_frame_index == nil thenstack_frame_index = 3end-- I'd like to use the unicode character \u{2518} here, but it doesn't work-- in OpenBSD.log(stack_frame_index, '] u2518 ' .. name)
if stack_frame_index == nil thenstack_frame_index = 4endlog_end(name, stack_frame_index)log_start(name, stack_frame_index)
if stack_frame_index == nil thenstack_frame_index = 4endlog_end(name, stack_frame_index)log_start(name, stack_frame_index)