add userdata

This commit is contained in:
aozhiwei 2019-04-13 17:50:58 +08:00
parent bc1e1e002c
commit 74dacaa87b
2 changed files with 7 additions and 0 deletions

View File

@ -69,6 +69,12 @@ namespace a8
Set(v); Set(v);
} }
XValue::XValue(void* userdata)
{
type_ = XVT_NULL;
Set(userdata);
}
XValue::XValue(const char* v) XValue::XValue(const char* v)
{ {
type_ = XVT_NULL; type_ = XVT_NULL;

View File

@ -25,6 +25,7 @@ namespace a8
XValue(long v); XValue(long v);
XValue(unsigned long v); XValue(unsigned long v);
XValue(double v); XValue(double v);
XValue(void* userdata);
XValue(const char* v); XValue(const char* v);
XValue(const std::string& v); XValue(const std::string& v);
XValue(std::string& v); XValue(std::string& v);