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

NameDescription
theA machine
contextA context