Code Doubt?

This is a discussion on Code Doubt? within the C Programming forums, part of the General Programming Boards category; Dear All, Please any one clerify what is the function of following peace of code? Code: #ifndef FS_AdcStatusChn0 #error (undefined ...

  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    83

    Code Doubt?

    Dear All,
    Please any one clerify what is the function of following peace of code?

    Code:
    #ifndef FS_AdcStatusChn0
       #error (undefined function switch: FS_AdcStatusChn0)
    #endif

  2. #2
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Once you've learnt C it should read like a book. Perhaps get a book on C yourself...

    Anyway, if FS_AdcStatusChn0 is not defined it gives an error at compile (or pre-compile) time. That error being undefined function switch: FS_AdcStatusChn0.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Values changing without reason?
    By subtled in forum C Programming
    Replies: 2
    Last Post: 04-19-2007, 10:20 AM
  2. Obfuscated Code Contest: The Results
    By Stack Overflow in forum Contests Board
    Replies: 29
    Last Post: 02-18-2005, 04:39 PM
  3. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 03:17 PM
  4. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM
  5. Replies: 0
    Last Post: 02-21-2002, 05:05 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21