/runtime/exception.d
http://github.com/wilkie/djehuty · D · 21 lines · 8 code · 5 blank · 8 comment · 0 complexity · 43c981e39cec1a595d07ad45689871ed MD5 · raw file
- /*
- * exception.d
- *
- * This module implements the Exception base class and the runtime functions.
- *
- */
- module runtime.exception;
- import core.exception;
- extern(C):
- // Description: This function will carefully throw an out of memory exception.
- void onOutOfMemoryError() {
- // Throw this without allocation
- throw cast(MemoryException.OutOfMemory)cast(void*)MemoryException.OutOfMemory.classinfo.init;
- }
- void _d_throw_exception(Object e) {
- }