Contains druntime startup and shutdown routines.
These are a temporary means of providing a GC hook for DLL use. They may be replaced with some other similar functionality later.
These are a temporary means of providing a GC hook for DLL use. They may be replaced with some other similar functionality later.
These are a temporary means of providing a GC hook for DLL use. They may be replaced with some other similar functionality later.
These are a temporary means of providing a GC hook for DLL use. They may be replaced with some other similar functionality later.
These are a temporary means of providing a GC hook for DLL use. They may be replaced with some other similar functionality later.
These are a temporary means of providing a GC hook for DLL use. They may be replaced with some other similar functionality later.
Keep track of how often rt_init/rt_term were called.
Initialize druntime. If a C program wishes to call D code, and there's no D main(), then it must call rt_init() and rt_term().
Terminate use of druntime.
Trace handler
Overrides the default trace hander with a user-supplied version.
TraceHandler h
| The new trace handler. Set to null to use the default handler. |
Return the current trace handler
This function will be called when an exception is constructed. The user-supplied trace handler will be called if one has been supplied, otherwise no trace will be generated.
void* ptr
| A pointer to the location from which to generate the trace, or null if the trace should be generated from within the trace handler itself. |
Provide out-of-band access to the original C argc/argv passed to this program via main(argc,argv).
Sets up the D char[][] command-line args, initializes druntime, runs embedded unittests and then runs the given D main() function, optionally catching and printing any unhandled exceptions.
© 1999–2019 The D Language Foundation
Licensed under the Boost License 1.0.
https://dlang.org/phobos/rt_dmain2.html