Add df.new() support for char and unsigned long

develop
lethosor 2016-08-11 00:01:52 -04:00
parent a1ff432bf8
commit eef6f9bfb7
1 changed files with 6 additions and 3 deletions

@ -449,10 +449,12 @@ Lua::ObjectClass Lua::IsDFObject(lua_State *state, int val_index)
static const char *const primitive_types[] = { static const char *const primitive_types[] = {
"string", "string",
"ptr-string", "ptr-string",
"char",
"int8_t", "uint8_t", "int16_t", "uint16_t", "int8_t", "uint8_t", "int16_t", "uint16_t",
"int32_t", "uint32_t", "int64_t", "uint64_t", "int32_t", "uint32_t", "int64_t", "uint64_t",
"intptr_t", "uintptr_t", "long", "intptr_t", "uintptr_t", "long", "unsigned long",
"bool", "float", "double", "bool",
"float", "double",
"pointer", "pointer",
"ptr-vector", "ptr-vector",
"bit-vector", "bit-vector",
@ -462,12 +464,13 @@ static const char *const primitive_types[] = {
static type_identity *const primitive_identities[] = { static type_identity *const primitive_identities[] = {
df::identity_traits<std::string>::get(), df::identity_traits<std::string>::get(),
df::identity_traits<const char*>::get(), df::identity_traits<const char*>::get(),
df::identity_traits<char>::get(),
df::identity_traits<int8_t>::get(), df::identity_traits<uint8_t>::get(), df::identity_traits<int8_t>::get(), df::identity_traits<uint8_t>::get(),
df::identity_traits<int16_t>::get(), df::identity_traits<uint16_t>::get(), df::identity_traits<int16_t>::get(), df::identity_traits<uint16_t>::get(),
df::identity_traits<int32_t>::get(), df::identity_traits<uint32_t>::get(), df::identity_traits<int32_t>::get(), df::identity_traits<uint32_t>::get(),
df::identity_traits<int64_t>::get(), df::identity_traits<uint64_t>::get(), df::identity_traits<int64_t>::get(), df::identity_traits<uint64_t>::get(),
df::identity_traits<intptr_t>::get(), df::identity_traits<uintptr_t>::get(), df::identity_traits<intptr_t>::get(), df::identity_traits<uintptr_t>::get(),
df::identity_traits<long>::get(), df::identity_traits<long>::get(), df::identity_traits<unsigned long>::get(),
df::identity_traits<bool>::get(), df::identity_traits<bool>::get(),
df::identity_traits<float>::get(), df::identity_traits<double>::get(), df::identity_traits<float>::get(), df::identity_traits<double>::get(),
df::identity_traits<void*>::get(), df::identity_traits<void*>::get(),