polyfill exit fix
This commit is contained in:
parent
f3141a0f99
commit
aee8c0fd3c
@ -13,7 +13,7 @@ _G.require = function (module)
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
print("ERROR: Tell a dev to implement: " .. i)
|
print("ERROR: Tell a dev to implement: " .. i)
|
||||||
os.exit()
|
error("ERROR: Tell a dev to implement: " .. i)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
@ -21,7 +21,7 @@ _G.require = function (module)
|
|||||||
return module
|
return module
|
||||||
end
|
end
|
||||||
print("ERROR: Tell a dev to implement: " .. module)
|
print("ERROR: Tell a dev to implement: " .. module)
|
||||||
os.exit()
|
error("ERROR: Tell a dev to implement: " .. module)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Polyfill bit. see: http://bitop.luajit.org/api.html
|
-- Polyfill bit. see: http://bitop.luajit.org/api.html
|
||||||
@ -36,23 +36,23 @@ end
|
|||||||
|
|
||||||
bit.tobit = function(x)
|
bit.tobit = function(x)
|
||||||
print("ERROR: Tell a dev to implement: bit.tobi")
|
print("ERROR: Tell a dev to implement: bit.tobi")
|
||||||
os.exit()
|
error()
|
||||||
end
|
end
|
||||||
|
|
||||||
bit.tohex = function(x,n)
|
bit.tohex = function(x,n)
|
||||||
print("ERROR: Tell a dev to implement: bit.tohex")
|
print("ERROR: Tell a dev to implement: bit.tohex")
|
||||||
os.exit()
|
error()
|
||||||
end
|
end
|
||||||
|
|
||||||
bit.lshift = function(x,n)
|
bit.lshift = function(x,n)
|
||||||
print("ERROR: Tell a dev to implement: bit.lshift")
|
print("ERROR: Tell a dev to implement: bit.lshift")
|
||||||
os.exit()
|
error()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
bit.rshift = function(x,n)
|
bit.rshift = function(x,n)
|
||||||
print("ERROR: Tell a dev to implement: bit.rshift")
|
print("ERROR: Tell a dev to implement: bit.rshift")
|
||||||
os.exit()
|
error()
|
||||||
end
|
end
|
||||||
|
|
||||||
bit.arshift = function(x,n)
|
bit.arshift = function(x,n)
|
||||||
@ -62,15 +62,15 @@ end
|
|||||||
|
|
||||||
bit.rol = function(x,n)
|
bit.rol = function(x,n)
|
||||||
print("ERROR: Tell a dev to implement: bit.rol")
|
print("ERROR: Tell a dev to implement: bit.rol")
|
||||||
os.exit()
|
error()
|
||||||
end
|
end
|
||||||
|
|
||||||
bit.ror = function(x,n)
|
bit.ror = function(x,n)
|
||||||
print("ERROR: Tell a dev to implement: bit.ror")
|
print("ERROR: Tell a dev to implement: bit.ror")
|
||||||
os.exit()
|
error()
|
||||||
end
|
end
|
||||||
|
|
||||||
bit.bswap = function(x)
|
bit.bswap = function(x)
|
||||||
print("ERROR: Tell a dev to implement: bit.bswap")
|
print("ERROR: Tell a dev to implement: bit.bswap")
|
||||||
os.exit()
|
error()
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user