Commit Graph

20 Commits (0d9b1a579522fa96c3257bc8df364387c7b1a743)

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.
2 years ago
elsid 9c8df09475
Remove user defined constructors for Interpreter 2 years ago
clang-format-bot ddb0522bbf
Apply clang-format to code base 2 years ago
Evil Eye 15fda78ddf Include string 3 years ago
Matt 34723c8ea8 Cleanup interpreter code a bit 3 years ago
jvoisin aec3c74fa5 Sprinkle some [[noreturn]] where possible 4 years ago
fredzio 916a9641fc Delete support for 2-arguments opcodes - it was never used 5 years ago
Andrei Kortunov 0937f02598 Get rid of unnecessary string streams 6 years ago
scrawl a5da3a269e Fix shadowing warnings 8 years ago
Marc Zinnschlag 8eb6d337d5 deal with script execution from within a script (Fixes #2964) 9 years ago
scrawl 67bd6cd708 Remove empty line at the beginning of files
git ls-files -z | xargs -0 sed -i '1{/^$/d}'
10 years ago
scrawl b3f5ac5dbb Include cleanup 10 years ago
Lukasz Gromanowski 50b6e828cc Added asserts in Interpreter::installSegmentX methods.
Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
11 years ago
Marc Zinnschlag 80691250ec don't create a new virtual machine for each script and frame 14 years ago
Marc Zinnschlag b3cc3073a3 changed encoding of segment 3 opcodes (increasing the number of opcodes, while reducing the width of the argument) 15 years ago
Marc Zinnschlag 5d46fc869c added missing sound script functionality; various script-related bug-fixes 15 years ago
athile 056194baa2 Merge upstream 15 years ago
Marc Zinnschlag c6a37b2e18 added first batch of opcodes 15 years ago
Marc Zinnschlag d80cb3461c added code execution main loop 15 years ago
Marc Zinnschlag 487a70388f added interpreter framework 15 years ago