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

Function LineCallback

sdk/samples/include/source/main.cpp:292–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

AbortMethod · 0.80
timeGetTimeFunction · 0.70

Tested by

no test coverage detected