MCPcopy Create free account
hub / github.com/anjo76/angelscript / LineCallback

Function LineCallback

sdk/samples/tutorial/source/main.cpp:317–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

AbortMethod · 0.80
timeGetTimeFunction · 0.70

Tested by

no test coverage detected