Here is a sample wrapper function, to get an idea of how one looks. The rest of this chapter is devoted to demystifying it:
SE_CALLBACK( void )
print(secontext se,sememcount argc)
switch( seGetType(se,SE_ARGS,SE_INDEX(0)) )
/* for whatever reason, need a specific number
/* Oh what the heck, just let ScriptEase convert
* whatever it is to a String.
/* let's return something because we can */
"Go away, you bother me kid.",SE_PS_STRLEN);
Before looking into the wrapper function tables, a basic overview of a wrapper function is necessary. The example above is simple but it demonstrates all that a wrapper function does. It gets its arguments, uses them to perform the body of the wrapper function, and returns a result.
THE FUNCTION HEADER