core/dependency/fparser.cpp
//=========================================================================
// User-defined constant and function addition
//=========================================================================
User-defined constant and function addition
User - defined constant and function addition
bool FunctionParser::AddConstant(const std::string& name, pop::F64 value)
{
    if(!containsOnlyValidNameChars(name)) return false;
    CopyOnWrite();
    NameData newData(NameData::CONSTANT, name);
    newData.value = value;
    return addNewNameData(data->nameData, data->namePtrs, newData);
}
bool FunctionParser :: AddConstant ( const std :: string & name , pop :: F64 value ) { if ( ! containsOnlyValidNameChars ( name ) ) return false ; CopyOnWrite ( ) ; NameData newData ( NameData :: CONSTANT , name ) ; newData . value = value ; return addNewNameData ( data -> nameData , data -> namePtrs , newData ) ; }
User-defined constant and function addition
User - defined constant and function addition