Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/lua/Tools.lua @ 11781

Last change on this file since 11781 was 8729, checked in by rgrieder, 14 years ago

Merged unity_build branch back to trunk.

Features:

  • Implemented fully automatic build units to speed up compilation if requested
  • Added DOUT macro for quick debug output
  • Activated text colouring in the POSIX IOConsole
  • DeclareToluaInterface is not necessary anymore

Improvements:

  • Output levels now change appropriately when switch back and forth from dev mode
  • Log level for the file output is now also correct during startup
  • Removed some header file dependencies in core and tools to speed up compilation

no more file for command line options

  • Improved util::tribool by adapting some concepts from boost::tribool

Regressions:

  • It is not possible anymore to specify command line arguments in an extra file because we've got config values for that purpose.
  • Property svn:eol-style set to native
File size: 398 bytes
Line 
1function handleDefArg(argument, defaultValue)
2    if argument == nil then
3        return defaultValue
4    else
5        return argument
6    end
7end
8
9function table.findIndex(table, value)
10    for i, v in ipairs(table) do
11        if v == value then
12            return i
13        end
14    end
15    return 0
16end
17
18-- Shortcuts for tribool
19tribool  = orxonox.tribool
20dontcare = orxonox.dontcare_keyword_t()
Note: See TracBrowser for help on using the repository browser.