Scl function: Difference between revisions

From STRIDE Wiki
Jump to navigation Jump to search
Line 1: Line 1:
= The scl_function pragma =
= The scl_function pragma =


The scl_function pragma allows the user to define a remote function interface.
The scl_function pragma allows the user to capture the function. All functions that STRIDE recognizes and works with must be captured as an initial step.  


== Syntax ==
== Syntax ==

Revision as of 15:35, 10 October 2008

The scl_function pragma

The scl_function pragma allows the user to capture the function. All functions that STRIDE recognizes and works with must be captured as an initial step.

Syntax

#pragma scl_function(function-name)
Parameters Type Description
function-name String Name of the function to define (no quotes)

Notes

  • Identifier must be declared as a function designator with external linkage.
  • A compilation error is reported if an attempt is made to capture a function more than once (with either scl_func or scl_function).

Example

int f(int x); 

#pragma scl_function(f)