Getting Values from the brEval Class

To access native C types stored in the brEval class, you'll need to use the following macros, which are defined in the header file distributed with the API.

  • BRINT(&eval), returns the int (C type int) contained in eval

  • BRDOUBLE(&eval), returns the float (C type double) contained in eval

  • BRVECTOR(&eval), returns the vector (C type slVector struct) contained in eval

  • BRMATRIX(&eval), returns the matrix (C type double [3][3]) contained in eval

  • BRBRRING(&eval), returns the string (C type char*) contained in eval

  • BROBJECT(&eval), returns the object (C type brInstance*) contained in eval

  • BRPOINTER(&eval), returns the pointer (C type void*) contained in eval

  • BRDATA(&eval), returns the data (C type brData*) contained in eval

  • BRHASH(&eval), returns the hash (C type brEvalHash*) contained in eval

  • BRLIST(&eval), returns the list (C type brEvalList*) contained in eval