The OpenD Programming Language

core.runtime

The runtime module exposes information specific to the D runtime code.

Members

Aliases

ExtendedModuleUnitTester
alias ExtendedModuleUnitTester = UnitTestResult function()

Module unit test handler

ModuleUnitTester
alias ModuleUnitTester = bool function()

Legacy module unit test handler

Functions

defaultTraceDeallocator
void defaultTraceDeallocator(Throwable.TraceInfo info)

Deallocate a traceinfo generated by deaultTraceHander.

defaultTraceHandler
Throwable.TraceInfo defaultTraceHandler(void* ptr)

Get the default Throwable.TraceInfo implementation for the platform

dmd_coverDestPath
void dmd_coverDestPath(string path)

Set output path for coverage reports.

dmd_coverSetMerge
void dmd_coverSetMerge(bool flag)

Enable merging of coverage reports with existing data.

dmd_coverSourcePath
void dmd_coverSourcePath(string path)

Set source file path for coverage reports.

profilegc_setlogfilename
void profilegc_setlogfilename(string name)

Set the output file name for memory profile reports (-profile=gc switch). An empty name will set the output to stdout.

rt_init
int rt_init()

C interface for Runtime.initialize, returns 1/0 instead of bool

rt_loadLibrary
void* rt_loadLibrary(char* name)
rt_loadLibraryW
void* rt_loadLibraryW(wchar* name)

C interface for Runtime.loadLibrary

rt_term
int rt_term()

C interface for Runtime.terminate, returns 1/0 instead of bool

rt_unloadLibrary
int rt_unloadLibrary(void* ptr)

C interface for Runtime.unloadLibrary, returns 1/0 instead of bool

runModuleUnitTests
UnitTestResult runModuleUnitTests()

This routine is called by the runtime to run module unit tests on startup. The user-supplied unit tester will be called if one has been set, otherwise all unit tests will be run in sequence.

trace_setdeffilename
void trace_setdeffilename(string name)

Set the output file name for the optimized profile linker DEF file (-profile switch). An empty name will set the output to stdout.

trace_setlogfilename
void trace_setlogfilename(string name)

Set the output file name for profile reports (-profile switch). An empty name will set the output to stdout.

Structs

CArgs
struct CArgs

Stores the unprocessed arguments supplied when the process was started.

Runtime
struct Runtime

This struct encapsulates all functionality related to the underlying runtime module for the calling context.

UnitTestResult
struct UnitTestResult

This type is returned by the module unit test handler to indicate testing results.

Meta

Authors

Sean Kelly