mirror of
https://github.com/ArashPartow/exprtk.git
synced 2025-08-17 03:47:32 +00:00
make symbol_exists() check the vector store
This commit is contained in:
@ -17337,8 +17337,8 @@ namespace exprtk
|
|||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
Function will return true if symbol_name exists as either a
|
Function will return true if symbol_name exists as either a
|
||||||
reserved symbol, variable, stringvar or function name in any
|
reserved symbol, variable, stringvar, vector or function name in
|
||||||
of the type stores.
|
any of the type stores.
|
||||||
*/
|
*/
|
||||||
if (!valid())
|
if (!valid())
|
||||||
return false;
|
return false;
|
||||||
@ -17348,6 +17348,8 @@ namespace exprtk
|
|||||||
else if (local_data().stringvar_store.symbol_exists(symbol_name))
|
else if (local_data().stringvar_store.symbol_exists(symbol_name))
|
||||||
return true;
|
return true;
|
||||||
#endif
|
#endif
|
||||||
|
else if (local_data().vector_store.symbol_exists(symbol_name))
|
||||||
|
return true;
|
||||||
else if (local_data().function_store.symbol_exists(symbol_name))
|
else if (local_data().function_store.symbol_exists(symbol_name))
|
||||||
return true;
|
return true;
|
||||||
else if (check_reserved_symb && local_data().is_reserved_symbol(symbol_name))
|
else if (check_reserved_symb && local_data().is_reserved_symbol(symbol_name))
|
||||||
|
Reference in New Issue
Block a user