LWDREntryPointMixin

Mixin for the entry point of the application. Calls startRuntime and registerCurrentThread and the respective stop functions on scope(exit).

May be extended to contain more initialization in the future.

enum LWDREntryPointMixin = q{ LWDR.startRuntime; // runs the shared static constructors scope(exit) LWDR.stopRuntime; // runs the shared static destructors LWDR.registerCurrentThread; scope(exit) LWDR.deregisterCurrentThread; };

Examples

extern(C) void myMain()
{
    mixin(LWDREntryPointMixin);
}

Meta