Commit Graph

12 Commits (e1665f39450dd9b70fa67a47bd3b26f4d9bdb9e9)

Author SHA1 Message Date
elsid 89bb04e8fd
Exit with fatal error on duplicated instruction code
Instead of causing SIGABRT which is more confusing.
6 months ago
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
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
Marc Zinnschlag 8eb6d337d5 deal with script execution from within a script (Fixes #2964) 9 years ago
Marc Zinnschlag 80691250ec don't create a new virtual machine for each script and frame 14 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