View Single Post
  #15   Spotlight this post!  
Unread 15-02-2005, 00:32
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Drive Straight C Code using Encoders without PID?

Quote:
Originally Posted by probizzle
I've been told, and have deduced from compiler errors that #defines are essentially copy-paste definitions for the compiler.

Am I correct?
You're correct, but you're not quite going far enough. In every C compiler I've studied, #defines are handled by a preprocessor. They take effect before the actual compiler ever sees the text in the first place.