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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user