MCPcopy Create free account
hub / github.com/bdring/FluidNC / execute_binary

Function execute_binary

FluidNC/src/Expression.cpp:218–223  ·  view source on GitHub ↗

! \brief Executes a binary operation. This just calls either execute_binary1 or execute_binary2. \param lhs pointer to the left hand side operand and result. \param operation \ref ngc_binary_op_t enum value. \param rhs pointer to the right hand side operand. \returns #Error::Ok enum value if processed without error, appropriate \ref Error enum value if not. */

Source from the content-addressed store, hash-verified

216\returns #Error::Ok enum value if processed without error, appropriate \ref Error enum value if not.
217*/
218static Error execute_binary(float& lhs, ngc_binary_op_t operation, const float& rhs) {
219 if (operation <= Binary_Binary2)
220 return execute_binary1(lhs, operation, rhs);
221
222 return execute_binary2(lhs, operation, rhs);
223}
224
225/*! \brief Executes an unary operation: ABS, ACOS, ASIN, COS, EXP, FIX, FUP, LN, ROUND, SIN, SQRT, TAN
226

Callers 1

expressionFunction · 0.85

Calls 2

execute_binary1Function · 0.85
execute_binary2Function · 0.85

Tested by

no test coverage detected