X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=include%2Fwimlib%2Fcompiler.h;h=5327318832f3c7ffb6dd9484117e73f9333a9f75;hp=11eaa2398f2a560dd336872c1e355a9d2d955fcf;hb=a8343baff22193be4651a3a63b07cb1520ced4e8;hpb=855b49ef85d274588a2848d9c69974f9b88d343a diff --git a/include/wimlib/compiler.h b/include/wimlib/compiler.h index 11eaa239..53273188 100644 --- a/include/wimlib/compiler.h +++ b/include/wimlib/compiler.h @@ -58,8 +58,13 @@ # 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 definition of CPU_IS_BIG_ENDIAN" +# error "missing required endianness definition" #endif #define CPU_IS_LITTLE_ENDIAN (!CPU_IS_BIG_ENDIAN)