Types in the brEval Class

The following list of constants specifies the types for plugin function input arguments and output types. The "AT" prefix stands for "atomic type".

  • AT_INT

  • AT_DOUBLE

  • AT_STRING

  • AT_VECTOR

  • AT_MATRIX

  • AT_DATA

  • AT_HASH

  • AT_LIST

  • AT_OBJECT

  • AT_POINTER

Your wrapper function should use these macros to extract data from the arguments array, and to store the result. The return value of your wrapper function should be EC_OK in the event of successful execution, or EC_ERROR in the event of a fatal error. Returning EC_ERROR will cause the simulation to stop, so you should generally not return this value. In many cases it is better to indicate the error using a special return value of the internal function (that is to say, by putting a special value in the "result" struct, not actually returning from your C code with a special value). You can then handle the error from within steve.