Fix bug in the server where a wait request was incorrectly handled.

Change the assert macro on Windows to make it easier to debug.
Review URL: http://webrtc-codereview.appspot.com/212002

git-svn-id: http://webrtc.googlecode.com/svn/trunk@718 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
tommi@webrtc.org
2011-10-10 09:51:52 +00:00
parent c0b2250b20
commit f7b36a47c0
5 changed files with 33 additions and 13 deletions

View File

@@ -11,6 +11,18 @@
#define PEERCONNECTION_SAMPLES_SERVER_UTILS_H_
#pragma once
#ifndef assert
#ifndef WIN32
#include <assert.h>
#else
#ifndef NDEBUG
#define assert(expr) ((void)((expr) ? true : __debugbreak()))
#else
#define assert(expr) ((void)0)
#endif // NDEBUG
#endif // WIN32
#endif // assert
#include <string>
#ifndef ARRAYSIZE