core/vm/sp_vm_function.cpp
changeset 585 6d3a0ec864fe
parent 584 1b10d3504e9e
child 586 1e73cb333b19
     1.1 --- a/core/vm/sp_vm_function.cpp	Wed Mar 07 18:24:09 2007 +0000
     1.2 +++ b/core/vm/sp_vm_function.cpp	Wed Mar 07 18:37:41 2007 +0000
     1.3 @@ -79,14 +79,14 @@
     1.4  	return SP_ERROR_NONE;
     1.5  }
     1.6  
     1.7 -int CFunction::PushCellByRef(cell_t *cell)
     1.8 +int CFunction::PushCellByRef(cell_t *cell, int flags)
     1.9  {
    1.10  	if (m_curparam >= SP_MAX_EXEC_PARAMS)
    1.11  	{
    1.12  		return SetError(SP_ERROR_PARAMS_MAX);
    1.13  	}
    1.14  
    1.15 -	return PushArray(cell, 1, NULL, SM_PARAM_COPYBACK);
    1.16 +	return PushArray(cell, 1, NULL, flags);
    1.17  }
    1.18  
    1.19  int CFunction::PushFloat(float number)
    1.20 @@ -96,9 +96,9 @@
    1.21  	return PushCell(val);
    1.22  }
    1.23  
    1.24 -int CFunction::PushFloatByRef(float *number)
    1.25 +int CFunction::PushFloatByRef(float *number, int flags)
    1.26  {
    1.27 -	return PushCellByRef((cell_t *)number);
    1.28 +	return PushCellByRef((cell_t *)number, flags);
    1.29  }
    1.30  
    1.31  int CFunction::PushArray(cell_t *inarray, unsigned int cells, cell_t **phys_addr, int copyback)