about summary refs log tree commit diff stats
path: root/src/LYHash.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/LYHash.h')
-rw-r--r--src/LYHash.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/LYHash.h b/src/LYHash.h
index f8aaf4a2..448fe42c 100644
--- a/src/LYHash.h
+++ b/src/LYHash.h
@@ -80,6 +80,7 @@ extern "C" {
 #define CACHEH 64
 
     extern unsigned cached_styles[CACHEH][CACHEW];
+#define CACHE_VALIDATE_YX(y, x) ((y) >= 0 && (x) >= 0 && (y) < CACHEH && (x) < CACHEW)
 
 #ifdef __cplusplus
 }