sgs_EndOn [function]
void sgs_EndOn( sgs_Context* C, sgs_Variable ev, int enable )
Associates or detaches the event from thread end set.
- end_on is the SGScript version of this function.
ev
can be any object, it should be an object with the "convert to bool" behavior implemented, such as the event object.- The thread will interpret
true
as a request to stop.
- The thread will interpret