Write queue after connect windows

On 09/25/2014 07:07 PM, Trevor Norris wrote:
> In src/win/pipe.c:
> 
>> @@ -1428,6 +1410,58 @@ static int uv_pipe_write_impl(uv_loop_t* loop,
>>    return 0;
>>  }
>>  
>> +static int uv_pipe_write_impl(uv_loop_t* loop,
>> +                              uv_write_t* req,
>> +                              uv_pipe_t* handle,
>> +                              const uv_buf_t bufs[],
>> +                              unsigned int nbufs,
>> +                              uv_stream_t* send_handle,
>> +                              uv_write_cb cb) {
>> +  int size;
>> +
>> +  if (nbufs != 1 && (nbufs != 0 || !send_handle)) {
> 
>     In non-debug builds that assert is ignored by the compiler.
> 
> I thought that only counts if |NDEBUG| is defined before |<assert.h>| is
> included, but I don't see that defined anywhere that would affect those
> two asserts.
> 

It's usually defined by the compilation tool:

~~~~
$ ./gyp_uv.py -f ninja
$ ninja -C out/Release -v
ninja: Entering directory `out/Release'
[1/166] cc -MMD -MF obj/test/run-tests.test-platform-output.o.d
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-D_POSIX_C_SOURCE=200112 -DNDEBUG -I../../include -pthread -Wall -ansi
-pthread -fvisibility=hidden -O3 -fstrict-aliasing -fomit-frame-pointer
-fdata-sections -ffunction-sections   -c
../../test/test-platform-output.c -o
obj/test/run-tests.test-platform-output.o
...
~~~~