sgs_ArithOp [function]

void sgs_ArithOp( sgs_Context* C, sgs_Variable* out, sgs_Variable* A, sgs_Variable* B, int op )

Perform the specified operation on variables A and B, returning the value on out.

This function prints errors, exactly like VM would (internally there are the same functions).