[Commits] [wesnoth/wesnoth] 748f87: lua: make it easier to disable strict mode global ...

GitHub noreply at github.com
Mon Jan 5 20:00:39 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 748f87209188324e45acdba2fbd0483d069cfab8
      https://github.com/wesnoth/wesnoth/commit/748f87209188324e45acdba2fbd0483d069cfab8
  Author: Chris Beck <render787 at gmail.com>
  Date:   2015-01-05 (Mon, 05 Jan 2015)

  Changed paths:
    M data/lua/ilua.lua

  Log Message:
  -----------
  lua: make it easier to disable strict mode global variables

After this commit, the "strict mode" lua variable errors may be
disabled with

  ilua.strict = false

and reenabled with

  ilua.strict = true

There will typically be no noticeable performance difference from
previously to this commit.

This is a bit simpler than the other methods described which
include using pcall or resetting the metatable of _G.





More information about the Commits mailing list