polyfill exit fix

This commit is contained in:
Djeeberjr 2022-03-12 21:45:31 +01:00
parent f3141a0f99
commit aee8c0fd3c

View File

@ -13,7 +13,7 @@ _G.require = function (module)
end
else
print("ERROR: Tell a dev to implement: " .. i)
os.exit()
error("ERROR: Tell a dev to implement: " .. i)
end
end
}
@ -21,7 +21,7 @@ _G.require = function (module)
return module
end
print("ERROR: Tell a dev to implement: " .. module)
os.exit()
error("ERROR: Tell a dev to implement: " .. module)
end
-- Polyfill bit. see: http://bitop.luajit.org/api.html
@ -36,23 +36,23 @@ end
bit.tobit = function(x)
print("ERROR: Tell a dev to implement: bit.tobi")
os.exit()
error()
end
bit.tohex = function(x,n)
print("ERROR: Tell a dev to implement: bit.tohex")
os.exit()
error()
end
bit.lshift = function(x,n)
print("ERROR: Tell a dev to implement: bit.lshift")
os.exit()
error()
end
bit.rshift = function(x,n)
print("ERROR: Tell a dev to implement: bit.rshift")
os.exit()
error()
end
bit.arshift = function(x,n)
@ -62,15 +62,15 @@ end
bit.rol = function(x,n)
print("ERROR: Tell a dev to implement: bit.rol")
os.exit()
error()
end
bit.ror = function(x,n)
print("ERROR: Tell a dev to implement: bit.ror")
os.exit()
error()
end
bit.bswap = function(x)
print("ERROR: Tell a dev to implement: bit.bswap")
os.exit()
error()
end