ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libecb/ecb.h
(Generate patch)

Comparing libecb/ecb.h (file contents):
Revision 1.4 by root, Thu May 26 17:26:03 2011 UTC vs.
Revision 1.5 by root, Thu May 26 17:27:15 2011 UTC

128} 128}
129 129
130ECB_HEADER_INLINE ecb_bool ecb_big_endian () ecb_const { return ecb_byteorder_helper () == 0x11; }; 130ECB_HEADER_INLINE ecb_bool ecb_big_endian () ecb_const { return ecb_byteorder_helper () == 0x11; };
131ECB_HEADER_INLINE ecb_bool ecb_little_endian () ecb_const { return ecb_byteorder_helper () == 0x44; }; 131ECB_HEADER_INLINE ecb_bool ecb_little_endian () ecb_const { return ecb_byteorder_helper () == 0x44; };
132 132
133#if ecb_cplusplus_does_not_suck
134// does not work for local types (http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2657.htm)
135template<typename T, int N>
136static inline int array_length (const T (&arr)[N])
137{
138 return N;
139}
140#else
141#define ecb_array_length(name) (sizeof (name) / sizeof (name [0]))
133#endif 142#endif
134 143
144#endif
145

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines