1234567891011121314151617181920 |
- discard """
- disabled: true
- """
- when defined(windows):
- import winlean
- else:
- import posix
- when defined(Windows):
- template orig: expr =
- winlean
- else:
- template orig: expr =
- posix
- proc socket(domain, typ, protocol: int): int =
- result = orig.socket(ord(domain), ord(typ), ord(protocol)))
|