diff options
Diffstat (limited to 'source/blender/blenlib/BLI_expr_pylike_eval.h')
-rw-r--r-- | source/blender/blenlib/BLI_expr_pylike_eval.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/source/blender/blenlib/BLI_expr_pylike_eval.h b/source/blender/blenlib/BLI_expr_pylike_eval.h index 59540d3c623..b8bf88dd85b 100644 --- a/source/blender/blenlib/BLI_expr_pylike_eval.h +++ b/source/blender/blenlib/BLI_expr_pylike_eval.h @@ -33,25 +33,25 @@ typedef struct ExprPyLike_Parsed ExprPyLike_Parsed; /** Expression evaluation return code. */ typedef enum eExprPyLike_EvalStatus { - EXPR_PYLIKE_SUCCESS = 0, - /* Computation errors; result is still set, but may be NaN */ - EXPR_PYLIKE_DIV_BY_ZERO, - EXPR_PYLIKE_MATH_ERROR, - /* Expression dependent errors or bugs; result is 0 */ - EXPR_PYLIKE_INVALID, - EXPR_PYLIKE_FATAL_ERROR, + EXPR_PYLIKE_SUCCESS = 0, + /* Computation errors; result is still set, but may be NaN */ + EXPR_PYLIKE_DIV_BY_ZERO, + EXPR_PYLIKE_MATH_ERROR, + /* Expression dependent errors or bugs; result is 0 */ + EXPR_PYLIKE_INVALID, + EXPR_PYLIKE_FATAL_ERROR, } eExprPyLike_EvalStatus; void BLI_expr_pylike_free(struct ExprPyLike_Parsed *expr); bool BLI_expr_pylike_is_valid(struct ExprPyLike_Parsed *expr); bool BLI_expr_pylike_is_constant(struct ExprPyLike_Parsed *expr); -ExprPyLike_Parsed *BLI_expr_pylike_parse( - const char *expression, - const char **param_names, int param_names_len); -eExprPyLike_EvalStatus BLI_expr_pylike_eval( - struct ExprPyLike_Parsed *expr, - const double *param_values, int param_values_len, - double *r_result); +ExprPyLike_Parsed *BLI_expr_pylike_parse(const char *expression, + const char **param_names, + int param_names_len); +eExprPyLike_EvalStatus BLI_expr_pylike_eval(struct ExprPyLike_Parsed *expr, + const double *param_values, + int param_values_len, + double *r_result); #ifdef __cplusplus } |