Function xsSetContext
Sets a context.
void xsSetContext
(
scope xs .bindings .xsMachineRecord* the,
void* context
);
The machine will call your C code primarily through callbacks. In your callbacks, you can set and get a context_: a pointer to an area where you can store and retrieve information for the machine.
Parameters
Name | Description |
---|---|
the | A machine |
context | A context |