2011-05-30 14:15:30 +02:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
*/
|
|
|
|
#ifndef PEERCONNECTION_SAMPLES_SERVER_UTILS_H_
|
|
|
|
#define PEERCONNECTION_SAMPLES_SERVER_UTILS_H_
|
|
|
|
#pragma once
|
|
|
|
|
2011-10-10 11:51:52 +02:00
|
|
|
#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
|
|
|
|
|
2011-05-30 14:15:30 +02:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#ifndef ARRAYSIZE
|
|
|
|
#define ARRAYSIZE(x) (sizeof(x) / sizeof(x[0]))
|
|
|
|
#endif
|
|
|
|
|
|
|
|
std::string int2str(int i);
|
2011-10-09 20:32:17 +02:00
|
|
|
std::string size_t2str(size_t i);
|
2011-05-30 14:15:30 +02:00
|
|
|
|
|
|
|
#endif // PEERCONNECTION_SAMPLES_SERVER_UTILS_H_
|