MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxReadableCallback

Function fxReadableCallback

xs/platforms/mac_xs.c:135–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133
134#ifdef mxDebug
135void fxReadableCallback(CFSocketRef socketRef, CFSocketCallBackType cbType, CFDataRef addr, const void* data, void* context)
136{
137 txMachine* the = context;
138 if (fxIsReadable(the)) {
139 fxDebugCommand(the);
140 if (the->breakOnStartFlag) {
141 fxBeginHost(the);
142 fxDebugLoop(the, NULL, 0, "C: xsDebugger");
143 fxEndHost(the);
144 }
145 }
146}
147
148void fxConnect(txMachine* the)
149{

Callers

nothing calls this directly

Calls 5

fxDebugCommandFunction · 0.85
fxBeginHostFunction · 0.85
fxDebugLoopFunction · 0.85
fxEndHostFunction · 0.85
fxIsReadableFunction · 0.70

Tested by

no test coverage detected