remove startup and update stratumdblib
This commit is contained in:
@@ -97,9 +97,9 @@ function stratum.loadTransforms(modules,libpath)
|
||||
file.close()
|
||||
if not contents then error("failed to read file",2) end
|
||||
contents = stratum.applyMacros(contents,libpath)
|
||||
local func, err = load(contents,"transforms","t",_ENV)
|
||||
if not func then error(err,2) end
|
||||
return func()
|
||||
local trans, err = load(contents,"transforms","t",_ENV)
|
||||
if not trans then error(err,2) end
|
||||
return trans()
|
||||
end
|
||||
|
||||
function stratum.setBackend(backend)
|
||||
@@ -109,7 +109,6 @@ function stratum.setBackend(backend)
|
||||
end
|
||||
|
||||
function stratum.createTransform(name,func)
|
||||
print("registering "..name)
|
||||
local backend = _STRATUMBACKEND
|
||||
if not backend or not (backend.sendMessage and backend.receiveMessage) then error("stratum backend not defined or defined incorrectly",2) end
|
||||
backend.sendMessage({protocol="RegisterTransform",name=name,functionBody=func})
|
||||
|
||||
Reference in New Issue
Block a user