MCPcopy Create free account
hub / github.com/CoolProp/CoolProp / CheckRealArrayOrError

Function CheckRealArrayOrError

wrappers/MathCAD/CoolPropMathcad.cpp:163–167  ·  view source on GitHub ↗

Helper: check that a complex array input is Real and return proper Mathcad error

Source from the content-addressed store, hash-verified

161
162// Helper: check that a complex array input is Real and return proper Mathcad error
163static inline LRESULT CheckRealArrayOrError(LPCCOMPLEXARRAY val, int position) {
164 if (val->cols != 1) return MAKELRESULT(ONLY_ONE_COLUMN, position);
165 if (val->hImag != NULL) return MAKELRESULT(MUST_BE_REAL, position);
166 return 0;
167}
168
169// Helper: Determine which of the valid delimiters were passed in a String.
170static inline char FindDelimiter(std::string instr) {

Callers 1

CP_PropsSImultiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected