__has_include and __has_include_next

Here’s another go at __has_include and __has_include_next for your review.

-John

hasinclude1.patch (13.2 KB)

In the documentation, please add an explicit “to test for this feature, use #if defined(__has_include)” at the bottom of the section.

Minor style suggestion, instead of :

  • // Get the result value. true means the file exists.
  • Result = (File ? true : false);

How about:

  • // Get the result value. Result = true means the file exists.
  • Result = File != 0;

Otherwise, looks great! Please apply, thanks John!

-Chris