Skip to content

Commit

Permalink
add getSymbol
Browse files Browse the repository at this point in the history
  • Loading branch information
dushibaiyu committed May 18, 2017
1 parent 8f9a351 commit dc9ef17
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/yu/tools/sharedlib.d
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,12 @@ nothrow:

auto getFunction(T)(string symbol) if(isFunctionPointer!T)
{
return cast(T)dllSymbol(_handle,symbol);
return cast(T)getSymbol(symbol);
}

void * getSymbol(string symbol)
{
return dllSymbol(_handle, symbol);
}

static void * dllSymbol(LibHandle handle, string symbol)
Expand Down

0 comments on commit dc9ef17

Please sign in to comment.