Thread: Questions regarding usage of #undef and #ifdef

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    639
    That's a no to both. 1) Files are compiled separately so you'd have to do it in each one, 2) The preprocessor doesn't give a hoot about your C-scopes, because it has no idea what anything is unless the line starts with a # or is a macro name.
    Last edited by adeyblue; 01-21-2011 at 08:45 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. #ifdef error
    By VirtualAce in forum C++ Programming
    Replies: 2
    Last Post: 01-12-2010, 07:03 PM
  2. Buidl Library with ./configure script
    By Jardon in forum C Programming
    Replies: 6
    Last Post: 07-24-2009, 09:36 AM
  3. A Couple of Questions
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 12-03-2005, 06:47 PM