refactoring: flags instead of bools
This commit is contained in:
parent
3f075b7921
commit
3ac6bd8ae1
6 changed files with 31 additions and 25 deletions
|
|
@ -752,7 +752,7 @@ proc genProcHeader(m: BModule, prc: PSym): Rope =
|
|||
genCLineDir(result, prc.info)
|
||||
# using static is needed for inline procs
|
||||
if lfExportLib in prc.loc.flags:
|
||||
if m.isHeaderFile:
|
||||
if isHeaderFile in m.flags:
|
||||
result.add "N_LIB_IMPORT "
|
||||
else:
|
||||
result.add "N_LIB_EXPORT "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue