mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 14:40:30 +03:00
25 lines
321 B
D
25 lines
321 B
D
|
|
module std.outofmemory;
|
|
|
|
class OutOfMemoryException : Exception
|
|
{
|
|
static char[] s = "Out of memory";
|
|
|
|
this()
|
|
{
|
|
super(s);
|
|
}
|
|
|
|
char[] toString()
|
|
{
|
|
return s;
|
|
}
|
|
}
|
|
|
|
extern (C) void _d_OutOfMemory()
|
|
{
|
|
throw cast(OutOfMemoryException)
|
|
cast(void *)
|
|
OutOfMemoryException.classinfo.init;
|
|
}
|
|
|