Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Remove _d_hidden_func and deprecated helper class and function
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuclaw committed Apr 25, 2015
1 parent 6698ee2 commit bf32c46
Showing 1 changed file with 6 additions and 21 deletions.
27 changes: 6 additions & 21 deletions src/core/exception.d
Expand Up @@ -183,8 +183,10 @@ unittest

/**
* Thrown on hidden function error.
* $(RED Deprecated.
* This feature is not longer part of the language.
*/
class HiddenFuncError : Error
deprecated class HiddenFuncError : Error
{
@safe pure nothrow this( ClassInfo ci )
{
Expand Down Expand Up @@ -496,11 +498,13 @@ extern (C) void onFinalizeError( TypeInfo info, Throwable e, string file = __FIL
/**
* A callback for hidden function errors in D. A $(LREF HiddenFuncError) will be
* thrown.
* $(RED Deprecated.
* This feature is not longer part of the language.
*
* Throws:
* $(LREF HiddenFuncError).
*/
extern (C) void onHiddenFuncError( Object o ) @safe pure nothrow
deprecated extern (C) void onHiddenFuncError( Object o ) @safe pure nothrow
{
throw new HiddenFuncError( typeid(o) );
}
Expand Down Expand Up @@ -644,23 +648,4 @@ extern (C)
{
onSwitchError(m.name, line);
}

void _d_hidden_func()
{
Object o;
version(D_InlineAsm_X86)
asm
{
mov o, EAX;
}
else version(D_InlineAsm_X86_64)
asm
{
mov o, RDI;
}
else
static assert(0, "unknown os");

onHiddenFuncError(o);
}
}

0 comments on commit bf32c46

Please sign in to comment.