mirror of
https://github.com/ArashPartow/exprtk.git
synced 2025-08-17 03:47:32 +00:00
shorten if statement and add brackets
This commit is contained in:
@ -17058,7 +17058,7 @@ namespace exprtk
|
||||
inline bool add_function(const std::string& function_name, ff##NN##_functor function) \
|
||||
{ \
|
||||
if (!valid() || !valid_symbol(function_name) || symbol_exists(function_name)) \
|
||||
{return false;} \
|
||||
{return false;} \
|
||||
\
|
||||
exprtk::ifunction<T>* ifunc = new freefunc##NN(function); \
|
||||
\
|
||||
|
Reference in New Issue
Block a user