mirror of
https://github.com/louisrubet/rpn
synced 2025-01-04 11:01:35 +01:00
auto-eval progs
This commit is contained in:
parent
6369fca434
commit
74bd96ace4
2 changed files with 8 additions and 2 deletions
|
@ -38,7 +38,13 @@ void auto_rcl(symbol* symb)
|
||||||
unsigned int size;
|
unsigned int size;
|
||||||
int type;
|
int type;
|
||||||
if (_local_heap->get(string(symb->_value), obj, size, type) || _global_heap->get(string(symb->_value), obj, size, type))
|
if (_local_heap->get(string(symb->_value), obj, size, type) || _global_heap->get(string(symb->_value), obj, size, type))
|
||||||
_stack->push_back(obj, size, type);
|
{
|
||||||
|
_stack->push_back(obj, size, type);
|
||||||
|
if (type == cmd_program)
|
||||||
|
{
|
||||||
|
eval();
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
_stack->push_back(symb, symb->size(), cmd_symbol);
|
_stack->push_back(symb, symb->size(), cmd_symbol);
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@ using namespace std;
|
||||||
|
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
|
||||||
#define ALLOC_BLOB (128*1024)
|
#define ALLOC_BLOB (2*1024)
|
||||||
#define LOCAL_COPY_PLACES 3
|
#define LOCAL_COPY_PLACES 3
|
||||||
#define LOCAL_COPY_SIZE 128
|
#define LOCAL_COPY_SIZE 128
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue