Thread: Is __INCLUDE_LEVEL__ supported by most compilers?

  1. #1
    Registered User Sir Galahad's Avatar
    Join Date
    Nov 2016
    Location
    The Round Table
    Posts
    277

    Is __INCLUDE_LEVEL__ supported by most compilers?

    So it's a gcc extension that's been around for quite a while. This repo seems to imply that it is supported by most compilers. If so, that would be really cool, as it would simplify the process of creating new libraries. Anyone know if that really is the case here?

  2. #2
    Registered User rstanley's Avatar
    Join Date
    Jun 2014
    Location
    New York, NY
    Posts
    1,111
    Quote Originally Posted by Sir Galahad View Post
    So it's a gcc extension that's been around for quite a while. This repo seems to imply that it is supported by most compilers. If so, that would be really cool, as it would simplify the process of creating new libraries. Anyone know if that really is the case here?
    I would say, no. They are predefined in Gnu compilers but may not be in every compiler. The C18 C Standard does not even mention this.

    You should not rely on this in portable code, or preferably in ANY source code.

  3. #3
    Registered User Sir Galahad's Avatar
    Join Date
    Nov 2016
    Location
    The Round Table
    Posts
    277
    Quote Originally Posted by rstanley View Post
    I would say, no. They are predefined in Gnu compilers but may not be in every compiler. The C18 C Standard does not even mention this.

    You should not rely on this in portable code, or preferably in ANY source code.

    Right. Not without a "requires gcc" kind of disclaimer anyway. Ok. Well that's pretty much what I expected to hear. Thanks!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Where is C++ not supported?
    By Yarin in forum Tech Board
    Replies: 4
    Last Post: 06-18-2015, 02:03 PM
  2. Error: Not supported by pp_c_expression
    By silenta237 in forum C Programming
    Replies: 1
    Last Post: 11-15-2011, 05:23 PM
  3. Address family not supported by protocol
    By -EquinoX- in forum Networking/Device Communication
    Replies: 5
    Last Post: 03-28-2009, 09:12 AM
  4. C++ library supported DLL
    By George2 in forum C++ Programming
    Replies: 3
    Last Post: 02-09-2008, 03:35 AM
  5. .rc files not supported by VC++2005Express
    By bejiz in forum Windows Programming
    Replies: 2
    Last Post: 06-04-2006, 08:41 AM

Tags for this Thread