PageRenderTime 10ms CodeModel.GetById 5ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/runtime/exception.d

http://github.com/wilkie/djehuty
D | 21 lines | 8 code | 5 blank | 8 comment | 0 complexity | 43c981e39cec1a595d07ad45689871ed MD5 | raw file
 1/*
 2 * exception.d
 3 *
 4 * This module implements the Exception base class and the runtime functions.
 5 *
 6 */
 7
 8module runtime.exception;
 9
10import core.exception;
11
12extern(C):
13
14// Description: This function will carefully throw an out of memory exception.
15void onOutOfMemoryError() {
16	// Throw this without allocation
17	throw cast(MemoryException.OutOfMemory)cast(void*)MemoryException.OutOfMemory.classinfo.init;
18}
19
20void _d_throw_exception(Object e) {
21}