0ad/source/ps/GameSetup
Yves 1a66f510d0 Use const T& for parameters of some types in script-exposed native functions
Using references matches the C++ coding style better and should improve
performance a bit in theory. It avoids 2 copies of T in case of the
functions registered with RegisterFunction (mainy used in the GUI). It
should also avoid one or two copies in case of
DEFINE_INTERFACE_METHOD_X, which is used in the simulation, but I
haven't bothered to count it there exactly.
It is now predefined which types have to be passed by const reference
and which are passed by value. Note that references can't be used as
out-parameters (to return multiple values to JS). This hasn't worked
before either and probably never will.

This was SVN commit r17696.
2016-01-23 15:17:56 +00:00
..
tests Fix test 2011-05-07 00:14:17 +00:00
Atlas.cpp Add the ability to specify a log level when using dlopen and change it to normal for Atlas. 2014-06-05 17:07:04 +00:00
Atlas.h Add basic help page into the main menu. 2010-07-07 21:47:31 +00:00
CmdLineArgs.cpp Replace some functor structs with lambdas, closures or range-based fors. 2015-08-19 03:33:04 +00:00
CmdLineArgs.h Path now goes to some trouble to prevent mixing / and \ slashes (causes trouble when hotloading, and some Windows APIs can't handle it, either) 2011-05-04 12:16:51 +00:00
Config.cpp Remove JSDebugger. Closes #2419, #2973. Refs #410, #2348, #3708. 2016-01-17 00:34:33 +00:00
Config.h Remove JSDebugger. Closes #2419, #2973. Refs #410, #2348, #3708. 2016-01-17 00:34:33 +00:00
GameSetup.cpp Remove JSDebugger. Closes #2419, #2973. Refs #410, #2348, #3708. 2016-01-17 00:34:33 +00:00
GameSetup.h Make the modmod standalone. 2014-08-25 16:38:54 +00:00
HWDetect.cpp Use const T& for parameters of some types in script-exposed native functions 2016-01-23 15:17:56 +00:00
HWDetect.h Add script-based system for doing messy stuff based on system configuration. 2010-11-20 19:46:49 +00:00
Paths.cpp Convert debug_printf to take UTF-8 strings instead of wchar_t. 2015-02-14 01:45:13 +00:00
Paths.h Updates data paths on OS X and Windows. On OS X only write to locations inside ~/Library. On Windows make the distinction between local and roaming appdata, and use folder inside My Documents for user-created data. Fixes #1145. 2012-03-22 00:23:31 +00:00