0ad/source/simulation2/system
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
..
CmpPtr.cpp # Rewrite of the game's simulation system 2010-01-09 19:20:14 +00:00
CmpPtr.h Replace use of safe bool by explicit bool operator. 2015-01-25 03:11:24 +00:00
Component.h SpiderMonkey 31 upgrade 2015-01-24 14:46:52 +00:00
ComponentManager.cpp Use const T& for parameters of some types in script-exposed native functions 2016-01-23 15:17:56 +00:00
ComponentManager.h Use const T& for parameters of some types in script-exposed native functions 2016-01-23 15:17:56 +00:00
ComponentManagerSerialization.cpp Automatically replace %hs/%ls with %s in CLogger format strings. 2015-01-22 20:36:24 +00:00
Components.h # Rewrite of the game's simulation system 2010-01-09 19:20:14 +00:00
ComponentTest.h Second (main) commit for the SpiderMonkey upgrade. 2014-03-28 20:26:32 +00:00
DynamicSubscription.cpp Convert debug_printf to take UTF-8 strings instead of wchar_t. 2015-02-14 01:45:13 +00:00
DynamicSubscription.h Fix non-PCH build 2014-06-19 23:36:09 +00:00
Entity.h Small cleanup, based on a change from one of Philip's old patches 2015-05-16 09:39:27 +00:00
EntityMap.h Fix invalid count for entityMaps 2014-03-05 14:58:17 +00:00
IComponent.cpp SpiderMonkey 31 upgrade 2015-01-24 14:46:52 +00:00
IComponent.h SpiderMonkey 31 upgrade 2015-01-24 14:46:52 +00:00
Interface.h Makes custom JS objects compatible with SpiderMonkey ESR31. 2014-07-13 15:31:48 +00:00
InterfaceScripted.h SpiderMonkey 31 upgrade 2015-01-24 14:46:52 +00:00
Message.h SpiderMonkey 31 upgrade 2015-01-24 14:46:52 +00:00
ParamNode.cpp The jschar typedef is removed in SpiderMonkey 38. 2015-12-19 01:29:55 +00:00
ParamNode.h XML validation. Based on patch by historic_bruno. Refs #245. 2015-06-07 21:56:52 +00:00
SimContext.cpp As per ticket #1707. Some minor improvements to spatial subdivision. Makes way for future changes in RangeManager. 2013-09-15 14:03:53 +00:00
SimContext.h Avoid slightly-expensive QueryInterface() calls 2013-09-11 20:41:53 +00:00