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

Commit

Permalink
Merge pull request #35 from yebblies/issue3646
Browse files Browse the repository at this point in the history
Stop using default parameters in function pointers.
  • Loading branch information
jmdavis committed Jul 13, 2011
2 parents 5997c7d + 88068a6 commit 85abbc9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/core/exception.d
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import core.stdc.stdio;

private
{
alias void function( string file, size_t line, string msg = null ) errorHandlerType;
alias void function( string file, size_t line, string msg ) errorHandlerType;

// NOTE: One assert handler is used for all threads. Thread-local
// behavior should occur within the handler itself. This delegate
Expand Down Expand Up @@ -361,7 +361,7 @@ extern (C) void onAssertError( string file = __FILE__, size_t line = __LINE__ )
{
if( assertHandler is null )
throw new AssertError( file, line );
assertHandler( file, line );
assertHandler( file, line, null);
}


Expand Down
2 changes: 1 addition & 1 deletion src/core/runtime.d
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ private

alias bool function() ModuleUnitTester;
alias bool function(Object) CollectHandler;
alias Throwable.TraceInfo function( void* ptr = null ) TraceHandler;
alias Throwable.TraceInfo function( void* ptr ) TraceHandler;

extern (C) void rt_setCollectHandler( CollectHandler h );
extern (C) CollectHandler rt_getCollectHandler();
Expand Down
2 changes: 1 addition & 1 deletion src/object_.d
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,7 @@ class Throwable : Object
}


alias Throwable.TraceInfo function(void* ptr = null) TraceHandler;
alias Throwable.TraceInfo function(void* ptr) TraceHandler;
private __gshared TraceHandler traceHandler = null;


Expand Down

0 comments on commit 85abbc9

Please sign in to comment.