22 #ifndef jtie_tconv_vwidth_hpp
23 #define jtie_tconv_vwidth_hpp
27 #include "jtie_tconv.hpp"
28 #include "jtie_tconv_value.hpp"
36 #if 0 // use a static_assert() when made available in upcoming C++0x
38 static_assert(CHAR_BIT == 8);
39 #endif // use a static_assert() when made available in upcoming C++0x
53 #ifdef JTIE_JNI_SHORT_T
54 JTIE_DEFINE_BASIC_TYPE_MAPPING(JTIE_JNI_SHORT_T,
signed short,
short);
55 JTIE_DEFINE_BASIC_TYPE_MAPPING(JTIE_JNI_SHORT_T,
unsigned short, ushort);
58 JTIE_DEFINE_BASIC_TYPE_MAPPING(JTIE_JNI_INT_T,
signed int,
int);
59 JTIE_DEFINE_BASIC_TYPE_MAPPING(JTIE_JNI_INT_T,
unsigned int, uint);
61 #ifdef JTIE_JNI_LONG_T
62 JTIE_DEFINE_BASIC_TYPE_MAPPING(JTIE_JNI_LONG_T,
signed long,
long);
63 JTIE_DEFINE_BASIC_TYPE_MAPPING(JTIE_JNI_LONG_T,
unsigned long, ulong);
65 #ifdef JTIE_JNI_LONGLONG_T
66 JTIE_DEFINE_BASIC_TYPE_MAPPING(JTIE_JNI_LONGLONG_T,
signed long long, longlong);
67 JTIE_DEFINE_BASIC_TYPE_MAPPING(JTIE_JNI_LONGLONG_T,
unsigned long long, ulonglong);
69 #ifdef JTIE_JNI_LONGDOUBLE_T
70 JTIE_DEFINE_BASIC_TYPE_MAPPING(JTIE_JNI_LONGDOUBLE_T,
long double, longdouble);
126 #endif // jtie_tconv_vwidth_hpp