Corretta backtrace

git-svn-id: svn://10.65.10.50/trunk@1128 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1995-03-15 17:07:28 +00:00
parent 9a59449da3
commit 6b509bd81d

View File

@ -109,7 +109,7 @@ public:
void begin() { _ip = 0;} // Mette all'inizio il puntatore all'istruzione corrente
TCode& step() { return (TCode&) _rpn[end() ? _ip : _ip++];} // Incrementa istruction pointer
bool end() const { return ((TCode&) _rpn[_ip]).getsym() == _endsym;} // Ritorna vero se _ip ha raggiunto il simbolo di fine codice
void backtrace(int step = 1) { _ip > step ? _ip -= step : begin(); }
void backtrace(int step = 1) { if (_ip > step) _ip -= step; else begin(); }
TCodearray(int size = 50); // Il costruttore crea un array di 10 elementi
virtual ~TCodearray() {}
};