libs/core: make use of global memory limits if supported

This commit is contained in:
Jo-Philipp Wich 2009-07-10 16:01:53 +00:00
parent 98a6885834
commit deb9868dbd

View file

@ -26,6 +26,11 @@ limitations under the License.
local require = require local require = require
-- Set memory limit if supported
if _G.set_memory_limit then
set_memory_limit(1024 * 1024 * 1.5)
end
-- Make sure that bitlib is loaded -- Make sure that bitlib is loaded
if not _G.bit then if not _G.bit then
_G.bit = require "bit" _G.bit = require "bit"