Writing S-Functions    

Chapter 4
Creating C++ S-Functions


The procedure for creating C++ S-functions is nearly the same as that for creating C S-functions (see Writing S-Functions in C). The following sections explain the differences.

Source File Format
Explains the differences between the source file structure of a C++ S-function and a C S-function.
Making C++ Objects Persistent
How to create C++ objects that persist across invocations of the S-function.
Building C++ S-Functions
How to build a C++ S-function.


  Example of an Ada S-Function Source File Format