Helper: check that a complex array input is Real and return proper Mathcad error
| 161 | |
| 162 | // Helper: check that a complex array input is Real and return proper Mathcad error |
| 163 | static 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. |
| 170 | static inline char FindDelimiter(std::string instr) { |