]> wimlib.net Git - wimlib/blobdiff - include/wimlib/compiler.h
Reduce stack usage of recursive scan functions
[wimlib] / include / wimlib / compiler.h
index 4bd92d78dee0bffcade4ff5b8247ef7f63094737..5327318832f3c7ffb6dd9484117e73f9333a9f75 100644 (file)
 #  define noinline
 #endif
 
+/* Same as 'noinline', but 'noinline_for_stack' documents that 'noinline' is
+ * being used to prevent the annotated function from being inlined into a
+ * recursive function and increasing its stack usage.  */
+#define noinline_for_stack     noinline
+
 #ifndef CPU_IS_BIG_ENDIAN
 #  error "missing required endianness definition"
 #endif