Commit Graph

13 Commits

Author SHA1 Message Date
Evil Eye 58a232d6c7 Replace StringUtils::format in components/interpreter 2025-08-24 14:07:41 +02:00
elsid 89bb04e8fd
Exit with fatal error on duplicated instruction code
Instead of causing SIGABRT which is more confusing.
2024-06-28 22:24:24 +02:00
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
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
Marc Zinnschlag 8eb6d337d5 deal with script execution from within a script (Fixes #2964) 2015-10-09 12:14:56 +02: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 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