Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template typeImportC*(typeName: untyped, importC: string, header: string, baseType: typed, actions: untyped): typed =
- when defined(useWinSdk):
- type
- typeName {.importC: importC, header: header.} = baseType
- actions
- else:
- type
- typeName = baseType
- actions
- typeImportC(SecHandle*, "SecHandle", "<Security.h>", object):
- dwLower*: uint
- dwUpper*: uint
- # Should Produce
- when defined(useWinSdk):
- type
- SecHandle* {.importC: "SecHandle", header: "<Security.h>".} = object
- dwLower*: uint
- dwUpper*: uint
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement