forked from mtcontrib/pdisc
add us time instruction
M faden.lua M standardbefehlssatz.lua
This commit is contained in:
parent
53c47b17ab
commit
b03c1fe61b
|
@ -29,11 +29,12 @@ local function befehl_ausfuhren(faden)
|
|||
end
|
||||
for i,v in pairs(ergebnis) do
|
||||
if not ersetzbar[i] then
|
||||
return false, "Attempt on changing an immediate"
|
||||
-- message sometimes incorrect
|
||||
return false, "Command " .. befehl .. ": Attempt on changing an immediate"
|
||||
end
|
||||
if not args[i] then
|
||||
-- FIXME
|
||||
error"[pdisc] instruction set attempt to write in void"
|
||||
-- can this happen? Is it a mistake in instruction set? bef ,b,,d
|
||||
return false, "Command " .. befehl .. ": Missing target argument"
|
||||
end
|
||||
vars[args[i]] = v
|
||||
end
|
||||
|
@ -51,7 +52,7 @@ end
|
|||
local function programm_ausfuhren(faden)
|
||||
local weiter,msg = befehl_ausfuhren(faden)
|
||||
if not weiter then
|
||||
faden.log = faden.log .. "Aborted: " .. msg .. "\n"
|
||||
faden.log = faden.log .. "Aborted (" .. faden.ip .. "): " .. msg .. "\n"
|
||||
faden:exit()
|
||||
return
|
||||
end
|
||||
|
|
|
@ -192,6 +192,10 @@ s = {
|
|||
return true
|
||||
end,
|
||||
|
||||
get_us_time = function()
|
||||
return true, minetest.get_us_time()
|
||||
end,
|
||||
|
||||
tostring = function(params)
|
||||
if #params ~= 1 then
|
||||
return false, WNOA
|
||||
|
|
Loading…
Reference in New Issue
Block a user