Commit Graph

20 Commits

Author SHA1 Message Date
elsid b88f0d2dbd
Replace mwscript program serialization into a vector with simple struct
Mostly to avoid string literal lookup by index with iteration over all preciding
literals and calling strlen. This is very inefficient. In genral this makes code
much more straightforward but also makes it portable since now int and float of
different sizes are properly supported.
2023-01-14 00:07:37 +01:00
elsid 9c8df09475
Remove user defined constructors for Interpreter 2023-01-11 23:47:42 +01:00
clang-format-bot ddb0522bbf
Apply clang-format to code base 2022-09-22 21:35:26 +03:00
Evil Eye 15fda78ddf Include string 2022-05-21 12:00:15 +02:00
Matt 34723c8ea8 Cleanup interpreter code a bit 2022-01-27 19:18:57 +00:00
jvoisin aec3c74fa5 Sprinkle some [[noreturn]] where possible 2021-06-22 12:51:08 +02:00
fredzio 916a9641fc Delete support for 2-arguments opcodes - it was never used 2020-04-26 00:56:11 +02:00
Andrei Kortunov 0937f02598 Get rid of unnecessary string streams 2019-01-07 21:08:16 +04:00
scrawl a5da3a269e Fix shadowing warnings 2016-08-29 12:20:00 +02:00
Marc Zinnschlag 8eb6d337d5 deal with script execution from within a script (Fixes #2964) 2015-10-09 12:14:56 +02:00
scrawl 67bd6cd708 Remove empty line at the beginning of files
git ls-files -z | xargs -0 sed -i '1{/^$/d}'
2015-08-18 23:06:12 +02:00
scrawl b3f5ac5dbb Include cleanup 2015-07-25 02:11:49 +02:00
Lukasz Gromanowski 50b6e828cc Added asserts in Interpreter::installSegmentX methods.
Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
2013-12-30 23:51:44 +01:00
Marc Zinnschlag 80691250ec don't create a new virtual machine for each script and frame 2011-05-18 16:01:19 +02:00
Marc Zinnschlag b3cc3073a3 changed encoding of segment 3 opcodes (increasing the number of opcodes, while reducing the width of the argument) 2010-08-22 13:15:56 +02:00
Marc Zinnschlag 5d46fc869c added missing sound script functionality; various script-related bug-fixes 2010-07-03 20:35:59 +02:00
athile 056194baa2 Merge upstream 2010-07-01 12:01:59 -07:00
Marc Zinnschlag c6a37b2e18 added first batch of opcodes 2010-06-28 21:49:48 +02:00
Marc Zinnschlag d80cb3461c added code execution main loop 2010-06-28 20:46:15 +02:00
Marc Zinnschlag 487a70388f added interpreter framework 2010-06-28 19:20:45 +02:00