Runtime Core

The runtime core contains user-facing code that other portions of the runtime rely upon, as well as some code which is perceived as a fundamental.

Interface Definition

This is a concise definition of the routines that every runtime core implementation must expose:

extern (C) void onAssertError( char[] file, uint line );
extern (C) void onAssertErrorMsg( char[] file, uint line, char[] msg );
extern (C) void onFinalizeError( ClassInfo info, Exception ex );
extern (C) void onHiddenFuncError( Object o );
extern (C) void onOutOfMemoryError();
extern (C) void onRangeError( char[] file, size_t line );
extern (C) void onSwitchError( char[] file, size_t line );
extern (C) void onUnicodeError( char[] msg, size_t idx );

extern (C) void thread_init();
extern (C) void thread_joinAll();
extern (C) bit  thread_needLock();
extern (C) void thread_suspendAll();
extern (C) void thread_scanAll( void delegate( void*, void* ) scan, void* curStackTop = null );
extern (C) void thread_resumeAll();
extern (C) void thread_attachThis();
extern (C) void thread_detachThis();

Implementation Requirements

Coming soon.