Disable async macro code output. Added some WSA error codes to winlean.

This commit is contained in:
Dominik Picheta
2014-04-07 20:46:47 +01:00
parent 12e247acc6
commit 369d8c57ae
2 changed files with 7 additions and 2 deletions

View File

@@ -922,7 +922,7 @@ macro async*(prc: stmt): stmt {.immediate.} =
result[6] = outerProcBody
echo(toStrLit(result))
#echo(toStrLit(result))
proc recvLine*(socket: TAsyncFD): PFuture[string] {.async.} =
## Reads a line of data from ``socket``. Returned future will complete once

View File

@@ -657,7 +657,12 @@ type
D4*: array [0..7, int8]
const
ERROR_IO_PENDING* = 997
ERROR_IO_PENDING* = 997 # a.k.a WSA_IO_PENDING
WSAECONNABORTED* = 10053
WSAECONNRESET* = 10054
WSAEDISCON* = 10101
WSAENETRESET* = 10052
WSAETIMEDOUT* = 10060
proc CreateIoCompletionPort*(FileHandle: THANDLE, ExistingCompletionPort: THANDLE,
CompletionKey: DWORD,