[wesnoth-commits] [wesnoth/wesnoth] f60167: Add a dir() function to improve API discoverability

Celtic Minstrel noreply at github.com
Sat May 29 15:28:33 UTC 2021


  Branch: refs/heads/lua_dir
  Home:   https://github.com/wesnoth/wesnoth
  Commit: f60167fab7bd001da77c28f7df5152494d3e14fc
      https://github.com/wesnoth/wesnoth/commit/f60167fab7bd001da77c28f7df5152494d3e14fc
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-29 (Sat, 29 May 2021)

  Changed paths:
    M src/scripting/lua_kernel_base.cpp

  Log Message:
  -----------
  Add a dir() function to improve API discoverability

The purpose is to simply list everything that's available in a given module or object.

Currently, it only works for tables. The plan is to extend it to userdata objects if and when it is approved.





More information about the Commits mailing list