30#define _RWSTD_TEST_SRC
42 : str_ (0), tid_ (t_bool)
50 memset (&val_, 0,
sizeof val_);
57 : str_ (0), tid_ (t_char)
59 memset (&val_, 0,
sizeof val_);
65 : str_ (0), tid_ (t_schar)
67 memset (&val_, 0,
sizeof val_);
73 : str_ (0), tid_ (t_uchar)
75 memset (&val_, 0,
sizeof val_);
81 : str_ (0), tid_ (t_sshrt)
83 memset (&val_, 0,
sizeof val_);
89 : str_ (0), tid_ (t_ushrt)
91 memset (&val_, 0,
sizeof val_);
97 : str_ (0), tid_ (t_sint)
99 memset (&val_, 0,
sizeof val_);
105 : str_ (0), tid_ (t_uint)
107 memset (&val_, 0,
sizeof val_);
113 : str_ (0), tid_ (t_slong)
115 memset (&val_, 0,
sizeof val_);
121 : str_ (0), tid_ (t_ulong)
123 memset (&val_, 0,
sizeof val_);
128#ifdef _RWSTD_LONG_LONG
131 : str_ (0), tid_ (t_sllong)
133 memset (&val_, 0,
sizeof val_);
134 val_.sllong_ =
value;
139 : str_ (0), tid_ (t_ullong)
141 memset (&val_, 0,
sizeof val_);
142 val_.ullong_ =
value;
149 : str_ (0), tid_ (t_flt)
151 memset (&val_, 0,
sizeof val_);
157 : str_ (0), tid_ (t_dbl)
159 memset (&val_, 0,
sizeof val_);
164#ifndef _RWSTD_NO_LONG_DOUBLE
167 : str_ (0), tid_ (t_ldbl)
169 memset (&val_, 0,
sizeof val_);
177 : str_ (0), tid_ (t_pvoid)
179 memset (&val_, 0,
sizeof val_);
184 : str_ (0), tid_ (t_c_pvoid)
186 memset (&val_, 0,
sizeof val_);
191 : str_ (0), tid_ (t_v_pvoid)
193 memset (&val_, 0,
sizeof val_);
198 : str_ (0), tid_ (t_cv_pvoid)
200 memset (&val_, 0,
sizeof val_);
206 : str_ (0), tid_ (t_str)
208 memset (&val_, 0,
sizeof val_);
213 : str_ (0), tid_ (t_c_str)
215 memset (&val_, 0,
sizeof val_);
220 : str_ (0), tid_ (t_v_str)
222 memset (&val_, 0,
sizeof val_);
227 : str_ (0), tid_ (t_cv_str)
229 memset (&val_, 0,
sizeof val_);
233#ifndef _RWSTD_NO_NATIVE_WCHAR_T
236 : str_ (0), tid_ (t_wchar)
238 memset (&val_, 0,
sizeof val_);
245#ifndef _RWSTD_NO_WCHAR_T
248 : str_ (0), tid_ (t_wstr)
250 memset (&val_, 0,
sizeof val_);
255 : str_ (0), tid_ (t_c_wstr)
257 memset (&val_, 0,
sizeof val_);
262 : str_ (0), tid_ (t_v_wstr)
264 memset (&val_, 0,
sizeof val_);
269 : str_ (0), tid_ (t_cv_wstr)
271 memset (&val_, 0,
sizeof val_);
279 : val_ (
rhs.val_), str_ (0), tid_ (
rhs.tid_)
302 memset (&val_, 0,
sizeof val_);
312 static const char*
const names[] = {
314 "bool",
"signed char",
"unsigned char",
"char",
315 "short",
"unsigned short",
"int",
"unsigned int",
316 "long",
"unsigned long",
317 "long long",
"unsigned long long",
318 "float",
"double",
"long double",
320 "void*",
"const void*",
"volatile void*",
"const volatile void*",
321 "char*",
"const char*",
"volatile char*",
"const volatile char*",
322 "wchar_t*",
"const wchar_t*",
"volatile wchar_t*",
323 "const volatile wchar_t*"
344 return val_.bool_ ?
"true" :
"false";
400#ifdef _RWSTD_LONG_LONG
428#ifndef _RWSTD_NO_LONG_DOUBLE
447#ifndef _RWSTD_NO_NATIVE_WCHAR_T
466#ifndef _RWSTD_NO_WCHAR_T
const char * tostr(const char *=0)
const char * type_name() const
rw_any_t & operator=(const rw_any_t &)
_TEST_EXPORT char * rw_sprintfa(const char *fmt,...)