1221798a7c4ad83ba7fb8b3ae39b99d44278bbe5aandrew@webrtc.org/* 2221798a7c4ad83ba7fb8b3ae39b99d44278bbe5aandrew@webrtc.org * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 3221798a7c4ad83ba7fb8b3ae39b99d44278bbe5aandrew@webrtc.org * 4221798a7c4ad83ba7fb8b3ae39b99d44278bbe5aandrew@webrtc.org * Use of this source code is governed by a BSD-style license 5221798a7c4ad83ba7fb8b3ae39b99d44278bbe5aandrew@webrtc.org * that can be found in the LICENSE file in the root of the source 6221798a7c4ad83ba7fb8b3ae39b99d44278bbe5aandrew@webrtc.org * tree. An additional intellectual property rights grant can be found 7221798a7c4ad83ba7fb8b3ae39b99d44278bbe5aandrew@webrtc.org * in the file PATENTS. All contributing project authors may 8221798a7c4ad83ba7fb8b3ae39b99d44278bbe5aandrew@webrtc.org * be found in the AUTHORS file in the root of the source tree. 9221798a7c4ad83ba7fb8b3ae39b99d44278bbe5aandrew@webrtc.org */ 10221798a7c4ad83ba7fb8b3ae39b99d44278bbe5aandrew@webrtc.org 11221798a7c4ad83ba7fb8b3ae39b99d44278bbe5aandrew@webrtc.org#ifndef WEBRTC_SYSTEM_WRAPPERS_INTERFACE_COMPILE_ASSERT_H_ 12221798a7c4ad83ba7fb8b3ae39b99d44278bbe5aandrew@webrtc.org#define WEBRTC_SYSTEM_WRAPPERS_INTERFACE_COMPILE_ASSERT_H_ 13221798a7c4ad83ba7fb8b3ae39b99d44278bbe5aandrew@webrtc.org 14221798a7c4ad83ba7fb8b3ae39b99d44278bbe5aandrew@webrtc.org// Only use this for C files. For C++, use compile_assert.h. 15221798a7c4ad83ba7fb8b3ae39b99d44278bbe5aandrew@webrtc.org// 16221798a7c4ad83ba7fb8b3ae39b99d44278bbe5aandrew@webrtc.org// Use this macro to verify at compile time that certain restrictions are met. 17221798a7c4ad83ba7fb8b3ae39b99d44278bbe5aandrew@webrtc.org// The argument is the boolean expression to evaluate. 18221798a7c4ad83ba7fb8b3ae39b99d44278bbe5aandrew@webrtc.org// Example: 19221798a7c4ad83ba7fb8b3ae39b99d44278bbe5aandrew@webrtc.org// COMPILE_ASSERT(sizeof(foo) < 128); 20221798a7c4ad83ba7fb8b3ae39b99d44278bbe5aandrew@webrtc.org#define COMPILE_ASSERT(expression) switch (0) {case 0: case expression:;} 21221798a7c4ad83ba7fb8b3ae39b99d44278bbe5aandrew@webrtc.org 22221798a7c4ad83ba7fb8b3ae39b99d44278bbe5aandrew@webrtc.org#endif // WEBRTC_SYSTEM_WRAPPERS_INTERFACE_COMPILE_ASSERT_H_ 23