Scl function: Difference between revisions

From STRIDE Wiki
Jump to navigation Jump to search
Line 5: Line 5:
== Syntax ==
== Syntax ==


  #pragma scl_function(SUID, function-name)
  #pragma scl_function(function-name)


{| border="1" cellspacing="0" cellpadding="10" style="align:left;"   
{| border="1" cellspacing="0" cellpadding="10" style="align:left;"   
Line 15: Line 15:
| String
| String
| Name of the function to define (no quotes)
| Name of the function to define (no quotes)
|}  
|}


== Notes ==
== Notes ==

Revision as of 17:43, 2 October 2008

The scl_function pragma

The scl_function pragma allows the user to define a remote function interface.

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 match a function more than once.

Example

int f(int x); 

#pragma scl_function(f)