]> wimlib.net Git - wimlib/blobdiff - include/wimlib/util.h
resource.c: Cleanup and refactor
[wimlib] / include / wimlib / util.h
index c61c1f9751bb15317c516b92b4f15633ce533522..cd0d599f28875596f059b517da55bfd67e37dbc2 100644 (file)
 
 #define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
 
+/* Maximum number of array elements to allocate on the stack (used in various
+ * places when large temporary buffers are needed).  */
+#define STACK_MAX 32768
+
 #ifdef ENABLE_CUSTOM_MEMORY_ALLOCATOR
 extern void *
 wimlib_malloc(size_t) _malloc_attribute;