Menu

Include next directive

Cyder

Include next Directive

Config (>= v105): TPP_CONFIG_HAVE_DIRECTIVE_INCLUDE_NEXT
Config (< v105): TPP_CONFIG_HAVE_include_next
Check: #if __has_feature(tpp_directive_include_next) || __has_extension(tpp_directive_include_next)
Function: tpp.c: TPPLexer_Next
Known supporting compilers: gcc, clang

Similar to #include, but will continue searching for the first file, that is not already being processed as part of the include-stack.

// file: <stdio.h>
// Override file for <stdio.h>, to add special features.

// Include the original stdio
#include_next <stdio.h>

// Add my features
...

s.a. [Include directive]


Related

Wiki: Include directive