Jeff Hutchinson
3e04196a53
make tests pass.
2021-04-03 01:53:40 -04:00
Jeff Hutchinson
f776e73b04
cleanup
2021-04-02 00:57:49 -04:00
Jeff Hutchinson
02447f0996
compile fixes.
2021-03-31 22:12:58 -04:00
Jeff Hutchinson
50df52ecfc
more console refactor.
2021-03-31 21:09:23 -04:00
Jeff Hutchinson
5e81c021f5
start cleaning up ConsoleValueRef's
2021-03-30 23:58:07 -04:00
Lukas
e69c4f0f6a
Remove typename from ArgumentToValue specifier in MethodTrampoline
2020-11-15 21:30:45 +01:00
Lukas
bcb75e21ac
Remove typename from ArgumentToValue specifier
2020-11-15 21:30:45 +01:00
Lukas Joergensen
6a9c09f145
Update EngineAPI, use fixed_tuple as main underlying data structure
...
This also fixes a few issues related to type conversions before data is sent to the engine function.
Squash
2020-11-15 21:30:45 +01:00
Lukas Joergensen
a241d27b58
Expand EngineAPI type definitions
2020-11-15 21:30:45 +01:00
AzaezelX
2c1508c169
uninitialized variables-console
2020-05-11 14:40:31 -05:00
Marc Chapman
e5884c56a7
Sqlite Console refactor, also rename param to make tooltip function more helpful
2019-01-10 21:31:17 +00:00
Lukas Joergensen
780e1dc73f
Use FixedTuple in EngineTrampoline, to make memory-layout consistent
2018-04-21 09:22:12 +02:00
Lukas Joergensen
7d91d0a577
Eliminate ConsoleFunction and ConsoleMethod, replace with DefineEngineStringlyVariadic
2018-04-20 22:09:58 +02:00
Lukas Joergensen
6be736ff85
Eliminate DefineConsoleStaticMethod
2018-04-17 21:03:16 +02:00
Lukas Joergensen
76908eae3c
Eliminate DefineConsoleMethod
2018-04-17 21:01:50 +02:00
Lukas Joergensen
e718841467
Eliminate DefineConsoleFunction
2018-04-17 20:54:08 +02:00
Thomas "elfprince13" Dickerson
d64e2a7019
Removed constexpr use to support VS2013
2017-01-10 23:22:05 -05:00
Thomas "elfprince13" Dickerson
1c2b096a72
Whitespace consistency
2017-01-06 23:10:14 -05:00
Thomas "elfprince13" Dickerson
39bea37fa0
minor fixes, and converted the type table
2017-01-06 17:19:36 -05:00
Thomas "elfprince13" Dickerson
500383591c
TSShapeConstruct commands converted
2017-01-06 17:19:27 -05:00
Thomas "elfprince13" Dickerson
62e3fae060
so many variadics.
2017-01-06 17:19:08 -05:00
Thomas "elfprince13" Dickerson
0dfb15dc57
Another set of templates converted to be variadic
2017-01-06 17:18:47 -05:00
Thomas "elfprince13" Dickerson
88106f9032
Fixed type inference for nulls in console functions
2017-01-06 17:18:37 -05:00
Thomas "elfprince13" Dickerson
26da831b01
This commit is broken, but has a lot of important stuff in it. Trying to figure out why my constructor thinks it doesn't take any parameters
2017-01-06 17:17:45 -05:00
Thomas "elfprince13" Dickerson
5a53fe7311
Started variadic templates in engine API
2017-01-06 17:17:24 -05:00
James Urquhart
3f97c2cedd
Fix building on GCC
2015-02-09 16:14:14 +00:00
James Urquhart
4a97054f02
Workaround for GCC/LLVM
2015-02-08 11:22:17 +00:00
James Urquhart
94a46d7123
Regenerate engineAPI.h from a template
2015-02-08 00:08:19 +00:00
James Urquhart
f44a3f27d6
Fix stack balancing problems by refactoring execution calls
...
- Con::executef now uses a template
- All public execution functions now restore the console stack upon return
- Fixed bad parameters on some callbacks
- Reverts get*Arg behavior
2015-02-08 00:08:18 +00:00
Vincent Gee
acb192e2a5
Replaced a ton of ConsoleMethods with the DefineConsoleMethod Macro.
2014-11-03 22:42:51 -05:00
Daniel Buckmaster
b507dc9555
Merge branch 'master' into console-func-refactor
...
Conflicts:
Engine/source/app/net/net.cpp
Engine/source/console/astNodes.cpp
Engine/source/console/compiledEval.cpp
Engine/source/console/console.h
Engine/source/console/consoleInternal.h
Engine/source/console/engineAPI.h
2014-10-14 15:09:11 +11:00
LuisAntonRebollo
82bb19e1b5
Fix for error on Clang compiler: reinterpret_cast from 'const void *' to 'FunctionType *' (aka 'void (*)(EngineObject *, const char *, const char *)') casts away qualifiers
...
return R( reinterpret_cast< FunctionType const* >( /*const_cast<void*>*/(mFn) )( mThis, a, b ) );
2014-06-02 02:18:59 +02:00
Thomas Fischer
cd978039ac
Merge pull request #635 from just-bank/engine-fixes
...
Various engine fixes
2014-05-23 14:09:00 +02:00
bank
e7eab10ad5
Corrected the use of #pragma warning()
...
We should use #pragma warning(push/pop) instead of (default: X)
2014-05-06 12:40:41 +04:00
cpusci
4c35fd37af
Simple pass over the codebase to standardize the platform types.
2013-08-04 16:26:01 -05:00
bank
9f2b0bcaf4
Fix engine API copy/paste errors (typo).
2013-02-28 23:50:57 +04:00
jamesu
08d4f6ebc0
Improvements to console refactor code
...
- Prevent stack corruption in a few places
- Use correct type in printfs
- Reduce type conversions in EngineApi & dAto*
- Fix compilation on GCC
- Tidy up code
2012-10-12 19:12:06 +01:00
James Urquhart
38c8e52c1d
Beginnings of the "pass everything using a native type wrapper" console code.
...
- ConsoleValue class is now the base value class.
- ConsoleValueRef is now used to supply function parameters. Values are disposable.
- Script functions return values instead of just strings where possible.
- Variables can be disposable strings
- Bytecode changed
Fix the issues with console method parameters and fields which prevented missions from loading.
2012-10-12 18:56:17 +01:00
DavidWyand-GG
7dbfe6994d
Engine directory for ticket #1
2012-09-19 11:15:01 -04:00