Add Type_Info type and add *_type objects at time of type registration.

This commit is contained in:
Jason Turner
2009-11-21 22:47:44 +00:00
parent a0c6366479
commit fbf8f53e04
9 changed files with 75 additions and 13 deletions

View File

@@ -315,6 +315,11 @@ namespace chaiscript
return m_data->m_type_info.is_const();
}
bool is_type(const Type_Info &ti) const
{
return m_data->m_type_info.bare_equal(ti);
}
bool is_null() const
{
if (m_data->m_is_null)