Skip to content

Commit dc9ef17

Browse files
author
dushibaiyu
committed
add getSymbol
1 parent 8f9a351 commit dc9ef17

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/yu/tools/sharedlib.d

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,12 @@ nothrow:
6262

6363
auto getFunction(T)(string symbol) if(isFunctionPointer!T)
6464
{
65-
return cast(T)dllSymbol(_handle,symbol);
65+
return cast(T)getSymbol(symbol);
66+
}
67+
68+
void * getSymbol(string symbol)
69+
{
70+
return dllSymbol(_handle, symbol);
6671
}
6772

6873
static void * dllSymbol(LibHandle handle, string symbol)

0 commit comments

Comments
 (0)