64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
end
db[key] = value
for id in pairs(dat.iters) do
reg.invoke(id,key)
end
end
reg.meld = function(tbl)
for k,v in pairs(tbl) do reg.add(k,v) end
end
sorcery.register[name] = reg
local nextfn = sorcery.registry.defercheck
sorcery.registry.defercheck = function()
if #dat.defer ~= 0 then
print('WARNING: ' .. tostring(#dat.defer) .. ' deferred iterator(s) have not yet been discharged for registry “' .. name .. '”')
|
|
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
end
db[key] = value
for id in pairs(dat.iters) do
reg.invoke(id,key)
end
end
reg.meld = function(tbl)
for k,v in pairs(tbl) do reg.link(k,v) end
end
sorcery.register[name] = reg
local nextfn = sorcery.registry.defercheck
sorcery.registry.defercheck = function()
if #dat.defer ~= 0 then
print('WARNING: ' .. tostring(#dat.defer) .. ' deferred iterator(s) have not yet been discharged for registry “' .. name .. '”')
|