p>
<pre>
const int nargs = 3;
char* s = ARG(0).str();
int n = ARG(1).integer();
SuObject* ob = force&lt;SuObject*>(ARG(2));
</pre>

<p>If your function does not have a return value, use:</p>
<pre>
return Value();
</pre>

<p>To return true or false, return SuTrue or SuFalse.</p>

<p>You can return integers since Value has a constructor from int:</p>
<pre>
Value su_double()
    {
    const int nargs = 1;
    int n = ARG(0).integer();
    return 2 * n;
    }
</pre>

<p>To return strings, construct an SuString: