void pushVariable(char const* value) {
     increaseStack();
     TypedVariable &var = stack[SP];
     var._type = VT_STRING;
     var.setStringValue(value);
     ++SP;
 }
 void pushVariable(double value) {
     increaseStack();
     TypedVariable &var = stack[SP];
     var._type = VT_DOUBLE;
     var.setDoubleValue(value);
     ++SP;
 }
 void pushVariable(signedIntType value) {
     increaseStack();
     TypedVariable &var = stack[SP];
     var._type = VT_INT;
     var.setIntValue(value);
     ++SP;
 }
 void pushVariable(TypedVariable const &v) {
     increaseStack();
     stack[SP++] = v;
 }
Beispiel #5
0
void DStack_L::push(int n) {
	if( isFull() == true ) { increaseStack(); }
	mas[++top] = n;
}