Overview
C Source Code (against 1266)
// at top of your file #include "brahms-1266.h" // no need, done by the overlay // #include "brahms-core.h" // your content here ... // at bottom of your file #include "brahms-1266.h"

Provides C language bindings for the Core Supervisor/Component interface. This one, "1266", is the current C binding and should be used for all new C components. There is almost no content at all in 1266 - see the include file - but future C bindings may provide additional functionality.

Warnings
  • You should not include the core directly, so as to take advantage of any fixes applied in future.

Usage

As with all the bindings, you should create a new Process for this binding using the BRAHMS Manager, which will be based on the template.

Considerations

  • This interface is effectively the core (i.e. native) so there is no associated overhead.

1266 Support

The following support is offered by the 1266 overlay.

S_ERROR(symbol)
Returns the base error code if symbol is an error or zero if it is not an error.
S_NUMBER(symbol)
Returns true if symbol is a number.
TYPE_BYTES(type)
Returns the number of bytes per element for the specified type.
TYPE_COMPLEX_MULT(type)
Returns 2 for complex types and 1 for real types.