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

Function LineCallback

src/server/angelscript/samples/include/source/main.cpp:290–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290void LineCallback(asIScriptContext *ctx, DWORD *timeOut)
291{
292 // If the time out is reached we abort the script
293 if( *timeOut < timeGetTime() )
294 ctx->Abort();
295
296 // It would also be possible to only suspend the script,
297 // instead of aborting it. That would allow the application
298 // to resume the execution where it left of at a later
299 // time, by simply calling Execute() again.
300}
301
302// Function implementation with native calling convention
303void PrintString(string &str)

Callers

nothing calls this directly

Calls 2

AbortMethod · 0.80
timeGetTimeFunction · 0.70

Tested by

no test coverage detected