Fix name() lookups
This commit is contained in:
parent
d2f855e3f9
commit
ac280a6971
@ -93,7 +93,7 @@ namespace chaiscript
|
|||||||
|
|
||||||
std::string name() const
|
std::string name() const
|
||||||
{
|
{
|
||||||
if (m_is_undef)
|
if (!m_is_undef)
|
||||||
{
|
{
|
||||||
return m_type_info.name();
|
return m_type_info.name();
|
||||||
} else {
|
} else {
|
||||||
@ -103,7 +103,7 @@ namespace chaiscript
|
|||||||
|
|
||||||
std::string bare_name() const
|
std::string bare_name() const
|
||||||
{
|
{
|
||||||
if (m_is_undef)
|
if (!m_is_undef)
|
||||||
{
|
{
|
||||||
return m_bare_type_info.name();
|
return m_bare_type_info.name();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user