Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

luaL_requiref

Philipp Janda edited this page Mar 9, 2015 · 2 revisions

luaL_requiref

The Lua manual states that luaL_requiref sets package.loaded[modname]. This is also what the compatibility implementation does. The original function in Lua 5.2 sets _LOADED[modname] in the registry instead. package.loaded and _LOADED in the registry usually are the same table unless you changed that.

Clone this wiki locally