RTI Connext Micro
Version 2.4.1.0
Main Page
RTI Connext Micro Documentation
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
dds_c_tpolicy_gen.h
1
/*
2
* FILE: dds_c_topic.h - DDS topic module
3
*
4
* (c) Copyright, Real-Time Innovations, 2008-2014.
5
*
6
* All rights reserved.
7
*
8
* No duplications, whole or partial, manual or electronic, may be made
9
* without express written permission. Any such copies, or
10
* revisions thereof, must display this notice unaltered.
11
* This code contains trade secrets of Real-Time Innovations, Inc.
12
*
13
* Modification History
14
* --------------------
15
* 30apr2008 Created
16
*/
17
/*i @file
18
* @ingroup DDSDomainModule
19
*/
20
#ifndef dds_c_tpolicy_gen_h
21
#define dds_c_tpolicy_gen_h
22
23
#ifndef dds_c_common_impl_h
24
#include "
dds_c/dds_c_common_impl.h
"
25
#endif
26
27
#ifdef __cplusplus
28
extern
"C"
29
{
30
#endif
31
32
#ifndef concatenate
33
#define concatenate(A, B) A ## B
34
#endif
35
36
#ifndef T_is_equal
37
#define _is_equal(T) concatenate(T,_is_equal)
38
#define T_is_equal _is_equal(T)
39
40
DDS_Boolean
41
T_is_equal(
const
struct
T *left,
const
struct
T *right)
42
{
43
if
((left == NULL) || (right == NULL))
44
{
45
return
DDS_BOOLEAN_FALSE
;
46
}
47
return
!
OSAPI_Memory_compare
(left, right,
sizeof
(
struct
T));
48
}
49
50
#undef T_is_equal
51
52
#endif
53
54
#ifdef __cplusplus
55
}
/* extern "C" */
56
#endif
57
58
#undef concatenate
59
60
#undef dds_c_tpolicy_gen_h
61
62
63
#endif
/* dds_c_tpolicy_gen_h */
RTI Connext Micro Version 2.4.1.0
Copyright © Thu Nov 20 2014
Real-Time Innovations, Inc