next up previous contents index
Next: 4.9 API Up: 4. The libonyx library Previous: 4.7.3 Signals   Contents   Index

4.8 Guidelines for writing extensions

When embedding libonyx in an application, it is usually desirable to add some operators so that the interpreter can interact with the rest of the application. The libonyx source code contains hundreds of operators that can be used as examples when writing new operators. However, there are some very important rules that operators must follow, some of which may not be obvious when reading the code.

Since Onyx type checking is dynamic, it is the responsibility of the operators to assure objects are the correct type before calling any of the type-specific nxo_*() functions. Failure to do so will result in unpredictable behavior and likely crashes.


next up previous contents index
Next: 4.9 API Up: 4. The libonyx library Previous: 4.7.3 Signals   Contents   Index
Jason Evans 2005-03-16