Skip to content

Instantly share code, notes, and snippets.

Avatar
🪕
Scruggs not drugs

Norman Clarke norman

🪕
Scruggs not drugs
View GitHub Profile
@norman
norman / compat_env.lua
Created Mar 30, 2012 — forked from davidm/moved.md
Lua module 'compat_env' - Lua 5.1/5.2 environment compatibility functions
View compat_env.lua
--[[
compat_env v$(_VERSION) - Lua 5.1/5.2 environment compatibility functions
SYNOPSIS
-- Get load/loadfile compatibility functions only if using 5.1.
local CL = pcall(load, '') and _G or require 'compat_env'
local load = CL.load
local loadfile = CL.loadfile