summaryrefslogtreecommitdiff
path: root/signs.h
diff options
context:
space:
mode:
Diffstat (limited to 'signs.h')
-rw-r--r--signs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/signs.h b/signs.h
index 1d19206c5..dc8c65785 100644
--- a/signs.h
+++ b/signs.h
@@ -18,6 +18,14 @@ typedef struct SignStruct {
extern MemoryPool _sign_pool;
/**
+ * Check if a Sign really exists.
+ */
+static inline bool IsValidSign(SignStruct* ss)
+{
+ return ss->str != 0;
+}
+
+/**
* Get the pointer to the sign with index 'index'
*/
static inline SignStruct *GetSign(uint index)