[wesnoth-commits] [wesnoth/wesnoth] 12bb52: Warn if trying to deprecate a table whose metatabl...

Celtic Minstrel noreply at github.com
Sun Nov 17 19:24:17 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 12bb52fd4e0a205c9de4260ac806b14299e2d17e
      https://github.com/wesnoth/wesnoth/commit/12bb52fd4e0a205c9de4260ac806b14299e2d17e
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2019-11-17 (Sun, 17 Nov 2019)

  Changed paths:
    M data/lua/core.lua

  Log Message:
  -----------
  Warn if trying to deprecate a table whose metatable is masked


  Commit: d53ac4b496f66eba1c1f855f51bb26d79864faa3
      https://github.com/wesnoth/wesnoth/commit/d53ac4b496f66eba1c1f855f51bb26d79864faa3
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2019-11-17 (Sun, 17 Nov 2019)

  Changed paths:
    M data/lua/ilua.lua
    M src/scripting/lua_kernel_base.cpp

  Log Message:
  -----------
  Fix ilua not honouring __tostring functions for tables

This gives ilua full access to the debug module so that it can determine whether the table's metatable contains __tostring


  Commit: 61d0da9c846945ecb23ab50ce4935f3461b972b4
      https://github.com/wesnoth/wesnoth/commit/61d0da9c846945ecb23ab50ce4935f3461b972b4
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2019-11-17 (Sun, 17 Nov 2019)

  Changed paths:
    M changelog.md
    M src/scripting/lua_common.cpp
    M src/scripting/lua_race.cpp
    M src/scripting/lua_race.hpp
    M src/scripting/lua_team.cpp
    M src/scripting/lua_unit_attacks.cpp
    M src/scripting/lua_unit_type.cpp

  Log Message:
  -----------
  Add __tostring metamethods to textdomains, races, unit types, weapons, and sides


  Commit: ece5490fd95625049a8696c8d0d6aa08e1e5a12f
      https://github.com/wesnoth/wesnoth/commit/ece5490fd95625049a8696c8d0d6aa08e1e5a12f
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2019-11-17 (Sun, 17 Nov 2019)

  Changed paths:
    M data/lua/ilua.lua

  Log Message:
  -----------
  Improve ilua's table output for tables that have both an array part and additional keys

Previously for such tables it would just show the array part and ignore the rest.


  Commit: 981fa93a409ddd6de9fe7dd12fd2a071d9428440
      https://github.com/wesnoth/wesnoth/commit/981fa93a409ddd6de9fe7dd12fd2a071d9428440
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2019-11-17 (Sun, 17 Nov 2019)

  Changed paths:
    M data/lua/ilua.lua

  Log Message:
  -----------
  Make ilua output iterable userdata as tables

This means anything with __len and __pairs metamethods.


Compare: https://github.com/wesnoth/wesnoth/compare/cd7160e8f7f8...981fa93a409d



More information about the Commits mailing list