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

Commit

Permalink
Rename printThrowable to _d_print_throwable
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberShadow committed Apr 7, 2015
1 parent 6833d64 commit bed8a4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/core/runtime.d
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private
extern (C) TraceHandler rt_getTraceHandler();

alias void delegate( Throwable ) ExceptionHandler;
extern (C) void printThrowable(Throwable t);
extern (C) void _d_print_throwable(Throwable t);

extern (C) void* thread_stackBottom();

Expand Down Expand Up @@ -396,7 +396,7 @@ extern (C) bool runModuleUnitTests()
}
catch( Throwable e )
{
printThrowable(e);
_d_print_throwable(e);
failed++;
}
}
Expand Down
8 changes: 4 additions & 4 deletions src/rt/dmain2.d
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ extern (C) int rt_init()
catch (Throwable t)
{
_initCount = 0;
printThrowable(t);
_d_print_throwable(t);
}
_STD_critical_term();
_STD_monitor_staticdtor();
Expand All @@ -201,7 +201,7 @@ extern (C) int rt_term()
}
catch (Throwable t)
{
printThrowable(t);
_d_print_throwable(t);
}
finally
{
Expand Down Expand Up @@ -398,7 +398,7 @@ extern (C) int _d_run_main(int argc, char **argv, MainFunc mainFunc)
}
catch (Throwable t)
{
printThrowable(t);
_d_print_throwable(t);
result = EXIT_FAILURE;
}
}
Expand Down Expand Up @@ -460,7 +460,7 @@ private void formatThrowable(Throwable t, void delegate(in char[] s) nothrow sin
}
}

extern (C) void printThrowable(Throwable t)
extern (C) void _d_print_throwable(Throwable t)
{
// On Windows, a console may not be present to print the output to.
// Show a message box instead.
Expand Down

0 comments on commit bed8a4d

Please sign in to comment.