Commit Graph

21 Commits (master)

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 60eede6a1d
Fix variable naming styleguide 2 years ago
elsid 0ab3090385
Make Runtime::getPC and setPC inline 2 years ago
elsid 46b4427d2e
Remove user defined constructor for Runtime 2 years ago
clang-format-bot ddb0522bbf
Apply clang-format to code base 2 years ago
Evil Eye c6ca0e78c9 Make getStringLiteral return a string_view 3 years ago
ζeh Matt 1832ed6a48
Use pop_back to shrink the stack 3 years ago
Andrei Kortunov f9d42ed396 Fix MSVC's C4267 warnings 4 years ago
Andrei Kortunov 8084a336b5 Replace zeroes and nulls by nullptrs 4 years ago
Phillip Andrews dee72e9430 Make script literal lookup functions safer
Assert isn't really the right way to range check these, since in theory we could have a malformed compiled script.  This should make it safer with zero performance overhead.
6 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
Rohit Nirmal 396fba7fa9 Silence -Wreorder warnings, and remove -Wno-reorder. 10 years ago
scrawl c8c0e5de38 Fixed code issues found with unity build. Missing include guards, duplicated functions, ... 11 years ago
scrawl 7dc30a01cd Some changes suggested by cppcheck 12 years ago
Marc Zinnschlag a1ece7de30 Bug #613: fixed assert in string literal access function 12 years ago
Marc Zinnschlag 80691250ec don't create a new virtual machine for each script and frame 14 years ago
Marc Zinnschlag c9a6335918 replaced flat Type_Data stack with a union 15 years ago
Marc Zinnschlag fac8fb8fcb added return and messagebox statements (messagebox does neither formating nor buttons yet) 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