Skip to content

Instantly share code, notes, and snippets.

@yorung
Created December 5, 2015 09:29
Show Gist options
  • Select an option

  • Save yorung/62e837a03a8f2b55b3ac to your computer and use it in GitHub Desktop.

Select an option

Save yorung/62e837a03a8f2b55b3ac to your computer and use it in GitHub Desktop.
function require(m)
package.loaded[m] = package.loaded[m] or dofile(m..".lua") or true
return package.loaded[m]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment