From 2db78bbbfa11f334c09b15c3918f3cda172b637c Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Fri, 10 Jan 2025 01:56:29 -0600 Subject: Create a dictionary of password words --- src/shared.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/shared.h') diff --git a/src/shared.h b/src/shared.h index 684fb9f..05ab58c 100644 --- a/src/shared.h +++ b/src/shared.h @@ -4,6 +4,8 @@ #include #include +#define STATICARRAY_SIZE(arr) (sizeof((arr))/sizeof((arr)[0])) + // Defines how `x___alloc()` functions should exit. `___VXGG___XCALLOC_EXIT_ON_ERROR___ > 0` calls `error()`, and thus functions // registered with `atexit()` and `on_exit()`. `___VXGG___XCALLOC_EXIT_ON_ERROR___ <= 0` calls `abort()` on error. `xcalloc()` // will ALWAYS 'abort', doing otherwise defeats the purpose of the function -- cgit v1.2.3