Codebase list lua-ldoc / d219d89
Merge pull request #69 from gns-ank/patch-1 Fix markdown.lua to work with LUA 5.2 Steve J Donovan 10 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
120120 local M = {}
121121 local MT = {__index = _G}
122122 setmetatable(M, MT)
123 setfenv(1, M)
123 if setfenv then setfenv(1, M) end -- if true, we are using LUA 5.1
124124
125125 ----------------------------------------------------------------------
126126 -- Utility functions
11331133 -- End of module
11341134 ----------------------------------------------------------------------
11351135
1136 setfenv(1, _G)
1136 if setfenv then setfenv(1, _G) end
11371137 M.lock(M)
11381138
11391139 -- Expose markdown function to the world