00001 #ifndef OMG_DDS_CORE_MACROS_HPP_ 00002 #define OMG_DDS_CORE_MACROS_HPP_ 00003 00004 /* Copyright 2010, Object Management Group, Inc. 00005 * Copyright 2010, PrismTech, Corp. 00006 * Copyright 2010, Real-Time Innovations, Inc. 00007 * All rights reserved. 00008 * 00009 * Licensed under the Apache License, Version 2.0 (the "License"); 00010 * you may not use this file except in compliance with the License. 00011 * You may obtain a copy of the License at 00012 * 00013 * http://www.apache.org/licenses/LICENSE-2.0 00014 * 00015 * Unless required by applicable law or agreed to in writing, software 00016 * distributed under the License is distributed on an "AS IS" BASIS, 00017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00018 * See the License for the specific language governing permissions and 00019 * limitations under the License. 00020 */ 00021 00022 #include <dds/core/detail/macros.hpp> 00023 00024 // == Static Assert ========================================================= 00025 #define OMG_DDS_STATIC_ASSERT OMG_DDS_STATIC_ASSERT_DETAIL 00026 // ========================================================================== 00027 00028 00029 // == Logging Macros ======================================================== 00030 #define OMG_DDS_LOG(kind, msg) OMG_DDS_LOG_DETAIL(kind, msg) 00031 // ========================================================================== 00032 00033 00034 // == State Width Constants ================================================= 00035 /* By default, there can be up to 32 unique statuses. However, a 00036 * DDS implementation may extend this number if necessary. 00037 */ 00038 #define OMG_DDS_DEFAULT_STATE_BIT_COUNT OMG_DDS_DEFAULT_STATE_BIT_COUNT_DETAIL 00039 #define OMG_DDS_DEFAULT_STATUS_COUNT OMG_DDS_DEFAULT_STATUS_COUNT_DETAIL 00040 00041 #ifndef OMG_DDS_STATE_BIT_COUNT 00042 #define OMG_DDS_STATE_BIT_COUNT OMG_DDS_DEFAULT_STATE_BIT_COUNT 00043 #endif // !defined(OMG_DDS_STATE_BIT_COUNT) 00044 00045 #ifndef OMG_DDS_STATUS_COUNT 00046 #define OMG_DDS_STATUS_COUNT OMG_DDS_DEFAULT_STATUS_COUNT 00047 #endif // !defined(OMG_DDS_STATUS_COUNT) 00048 // ========================================================================== 00049 00050 00051 // == DLL Export Macros ===================================================== 00052 #define OMG_DDS_API OMG_DDS_API_DETAIL 00053 // ========================================================================== 00054 00055 00056 #endif /* OMG_DDS_CORE_MACROS_HPP_*/
1.7.1