remove the now useless MAX_RESULTS constant
parent
d7700a9337
commit
d11e50f5b5
|
@ -16,7 +16,6 @@
|
||||||
namespace cubescript {
|
namespace cubescript {
|
||||||
|
|
||||||
static constexpr int MAX_ARGUMENTS = 25;
|
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_DUMMY = MAX_ARGUMENTS;
|
||||||
static constexpr int ID_IDX_NUMARGS = MAX_ARGUMENTS + 1;
|
static constexpr int ID_IDX_NUMARGS = MAX_ARGUMENTS + 1;
|
||||||
|
|
|
@ -7,7 +7,7 @@ namespace cubescript {
|
||||||
thread_state::thread_state(internal_state *cs):
|
thread_state::thread_state(internal_state *cs):
|
||||||
vmstack{cs}, errbuf{cs}
|
vmstack{cs}, errbuf{cs}
|
||||||
{
|
{
|
||||||
vmstack.reserve(MAX_ARGUMENTS + MAX_RESULTS);
|
vmstack.reserve(32);
|
||||||
}
|
}
|
||||||
|
|
||||||
hook_func thread_state::set_hook(hook_func f) {
|
hook_func thread_state::set_hook(hook_func f) {
|
||||||
|
@ -16,4 +16,4 @@ hook_func thread_state::set_hook(hook_func f) {
|
||||||
return hk;
|
return hk;
|
||||||
}
|
}
|
||||||
|
|
||||||
} /* namespace cubescript */
|
} /* namespace cubescript */
|
||||||
|
|
Loading…
Reference in New Issue