MCPcopy Create free account
hub / github.com/MayaPosch/NymphCast / LineCallback

Function LineCallback

src/server/angelscript/samples/tutorial/source/main.cpp:315–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315void LineCallback(asIScriptContext *ctx, DWORD *timeOut)
316{
317 // If the time out is reached we abort the script
318 if( *timeOut < timeGetTime() )
319 ctx->Abort();
320
321 // It would also be possible to only suspend the script,
322 // instead of aborting it. That would allow the application
323 // to resume the execution where it left of at a later
324 // time, by simply calling Execute() again.
325}
326
327// Function implementation with native calling convention
328void PrintString(string &str)

Callers

nothing calls this directly

Calls 2

AbortMethod · 0.80
timeGetTimeFunction · 0.70

Tested by

no test coverage detected