0ad/source/scriptinterface
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 failure on Windows. 2016-01-11 20:03:01 +00:00
third_party Fixes clang unused parameter warning 2015-06-14 23:45:15 +00:00
NativeWrapperDecls.h Use const T& for parameters of some types in script-exposed native functions 2016-01-23 15:17:56 +00:00
NativeWrapperDefns.h Use const T& for parameters of some types in script-exposed native functions 2016-01-23 15:17:56 +00:00
ScriptConversions.cpp Use .assign instead of operator=. 2016-01-11 20:57:03 +00:00
ScriptExtraHeaders.h Disables some SpiderMonkey-related build warnings with clang 2015-02-22 21:15:47 +00:00
ScriptInterface.cpp Replace HandleWrapper and avoid repoint function 2016-01-23 14:42:59 +00:00
ScriptInterface.h Use const T& for parameters of some types in script-exposed native functions 2016-01-23 15:17:56 +00:00
ScriptRuntime.cpp The jschar typedef is removed in SpiderMonkey 38. 2015-12-19 01:29:55 +00:00
ScriptRuntime.h SpiderMonkey 31 upgrade 2015-01-24 14:46:52 +00:00
ScriptStats.cpp Use in-place construction. 2015-07-29 23:44:17 +00:00
ScriptStats.h Add JS memory usage to profiler. 2010-08-02 19:23:58 +00:00
ScriptTypes.h JS_DumpHeap is removed in SpiderMonkey 38, since we have nothing using it remove it. Refs #3708. 2016-01-11 20:03:09 +00:00
ScriptVal.h Switch to std::shared_ptr and std::weak_ptr. 2015-01-25 03:10:58 +00:00