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