remove the now useless MAX_RESULTS constant

master
Daniel Kolesa 2021-03-28 01:33:31 +01:00
parent d7700a9337
commit d11e50f5b5
2 changed files with 2 additions and 3 deletions

View File

@ -16,7 +16,6 @@
namespace cubescript {
static constexpr int MAX_ARGUMENTS = 25;
static constexpr int MAX_RESULTS = 7;
static constexpr int ID_IDX_DUMMY = MAX_ARGUMENTS;
static constexpr int ID_IDX_NUMARGS = MAX_ARGUMENTS + 1;

View File

@ -7,7 +7,7 @@ namespace cubescript {
thread_state::thread_state(internal_state *cs):
vmstack{cs}, errbuf{cs}
{
vmstack.reserve(MAX_ARGUMENTS + MAX_RESULTS);
vmstack.reserve(32);
}
hook_func thread_state::set_hook(hook_func f) {
@ -16,4 +16,4 @@ hook_func thread_state::set_hook(hook_func f) {
return hk;
}
} /* namespace cubescript */
} /* namespace cubescript */