From 999e499ce54e7b8269fd1becd4e5a4f2f5801e0d Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 12 Jul 2021 09:29:52 +0100 Subject: [PATCH] Nasal Hash: add isNil wrapper --- simgear/nasal/cppbind/NasalHash.cxx | 6 ++++++ simgear/nasal/cppbind/NasalHash.hxx | 2 ++ 2 files changed, 8 insertions(+) diff --git a/simgear/nasal/cppbind/NasalHash.cxx b/simgear/nasal/cppbind/NasalHash.cxx index 71afefe0..1ad56d7d 100644 --- a/simgear/nasal/cppbind/NasalHash.cxx +++ b/simgear/nasal/cppbind/NasalHash.cxx @@ -130,4 +130,10 @@ namespace nasal return _keys; } + //---------------------------------------------------------------------------- + bool Hash::isNil() const + { + return naIsNil(_hash); + } + } // namespace nasal diff --git a/simgear/nasal/cppbind/NasalHash.hxx b/simgear/nasal/cppbind/NasalHash.hxx index 97c1e6cb..a9e6ead7 100644 --- a/simgear/nasal/cppbind/NasalHash.hxx +++ b/simgear/nasal/cppbind/NasalHash.hxx @@ -137,6 +137,8 @@ namespace nasal */ int size() const; + bool isNil() const; + /** * Get a list of all keys */