From e9c5d08f58abb0485f6e471e0f215c758e4cb2b7 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 17 Apr 2013 20:10:14 -0400 Subject: Inline LuaJIT compatibility since it is mostly compatible with Lua 5.2. --- core/compat.lua | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 core/compat.lua (limited to 'core/compat.lua') diff --git a/core/compat.lua b/core/compat.lua deleted file mode 100644 index 98b536db..00000000 --- a/core/compat.lua +++ /dev/null @@ -1,13 +0,0 @@ --- Copyright 2007-2013 Mitchell mitchell.att.foicica.com. See LICENSE. - --- When using LuaJIT try to retain backwards compatibility (Lua 5.1). --- LuaJIT is compiled with LUAJIT_ENABLE_LUA52COMPAT for some Lua 5.2 features. - --- In Lua 5.1, `module` exists. -_G.module = nil -- use _G prefix so LuaDoc does not get confused - --- In Lua 5.1, `package.loaders` is `package.searchers` -package.searchers = package.loaders - --- In LuaJIT, `bit` is used instead of `bit32` -bit32 = bit -- cgit v1.2.3