Fix code style errors (#12545)
This commit is contained in:
parent
c58aa7705d
commit
160c07be00
1 changed files with 2 additions and 2 deletions
|
|
@ -63,9 +63,9 @@ proc importcSymbol*(conf: ConfigRef, sym: PSym): PNode =
|
||||||
if lib != nil and lib.path.kind notin {nkStrLit..nkTripleStrLit}:
|
if lib != nil and lib.path.kind notin {nkStrLit..nkTripleStrLit}:
|
||||||
globalError(conf, sym.info, "dynlib needs to be a string lit")
|
globalError(conf, sym.info, "dynlib needs to be a string lit")
|
||||||
var theAddr: pointer
|
var theAddr: pointer
|
||||||
if (lib.isNil or lib.kind == libHeader) and not gExehandle.isNil:
|
if (lib.isNil or lib.kind == libHeader) and not gExeHandle.isNil:
|
||||||
# first try this exe itself:
|
# first try this exe itself:
|
||||||
theAddr = gExehandle.symAddr(name)
|
theAddr = gExeHandle.symAddr(name)
|
||||||
# then try libc:
|
# then try libc:
|
||||||
if theAddr.isNil:
|
if theAddr.isNil:
|
||||||
let dllhandle = getDll(conf, gDllCache, libcDll, sym.info)
|
let dllhandle = getDll(conf, gDllCache, libcDll, sym.info)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue