#include "a2dprec.h"#include "wx/defs.h"#include <stdlib.h>#include <string.h>#include <math.h>#include <wx/utils.h>#include "wx/canextobj/eval.h"#include <stdio.h>

Go to the source code of this file.
Defines | |
| #define | SAVE_ERR(n) {ERROR2=n; ERPOS=m_expression-ERANC-1; ERTOK = m_token;} |
| #define | ERR(n) { SAVE_ERR(n); longjmp(m_jb,1);} |
| #define | M_PI 3.14159265358979323846 |
| #define | M_E 2.71828182845904523536 |
| #define | MATH_FUNC(f) m_functions.Append(new a2dEvalFunction(wxT(#f), f)) |
Functions | |
| double | deg (double x) |
| double | rad (double x) |
| WX_DEFINE_LIST (a2dFunctionList) | |
| WX_DEFINE_LIST (a2dVariableList) | |
Variables | |
| int | ERROR2 |
| wxString | ERTOK |
| int | ERPOS |
| wxChar * | ERANC |
| const wxChar * | ErrMsgs [] |
Licence: wxWidgets Licence
RCS-ID:
Definition in file eval.cpp.
| const wxChar* ErrMsgs[] |
Initial value:
{
wxT("Syntax error"),
wxT("Unbalanced parenthesis"),
wxT("Division by zero"),
wxT("Unknown variable"),
wxT("Maximum variables exceeded"),
wxT("Unrecognised funtion"),
wxT("Wrong number of arguments to funtion"),
wxT("Missing an argument"),
wxT("Empty expression")
}