Nasal Hash: add isNil wrapper

This commit is contained in:
James Turner 2021-07-12 09:29:52 +01:00
parent 7db6651970
commit 999e499ce5
2 changed files with 8 additions and 0 deletions

View File

@ -130,4 +130,10 @@ namespace nasal
return _keys;
}
//----------------------------------------------------------------------------
bool Hash::isNil() const
{
return naIsNil(_hash);
}
} // namespace nasal

View File

@ -137,6 +137,8 @@ namespace nasal
*/
int size() const;
bool isNil() const;
/**
* Get a list of all keys
*/