[Commits] [wesnoth/wesnoth] 4dea26: add code comments and minor fixups in lua_kernel_b...

GitHub noreply at github.com
Fri Oct 7 23:36:58 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 4dea265113cab5b723ca578e32b1fa250c9d16f7
      https://github.com/wesnoth/wesnoth/commit/4dea265113cab5b723ca578e32b1fa250c9d16f7
  Author: Chris Beck <beck.ct at gmail.com>
  Date:   2016-10-07 (Fri, 07 Oct 2016)

  Changed paths:
    M src/scripting/lua_kernel_base.cpp
    M src/scripting/lua_kernel_base.hpp

  Log Message:
  -----------
  add code comments and minor fixups in lua_kernel_base

adds code comments for a number of method declarations in header,
and in the implementation file, prefixes many method calls with
`this->`. This convention disambiguates whether the call is a method
of the class or a function at global scope. On some projects like
gcc, it is part of the coding standard to do this to avoid subtle
bugs -- I have come to believe that it makes your code more easily
readable, even if it is a little more typing.





More information about the Commits mailing list