Everything for Electronics

C Preprocessor Reduces Debug Headaches
Nuts & Volts Magazine (January 2019)

C Preprocessor Reduces Debug Headaches

By Jon Titus    View In Digital Edition  

In my experience, few hobbyists or experimenters take advantage of C preprocessor operations. You've probably seen preprocessor directives such as #include <stdio.h> or #include "servo.h"among the first lines in programs. However, they are not part of the C language. When you compile a program, it first goes through a preprocessor that handles housekeeping tasks such as including files that operate a peripheral or that provide a function such as printf. This tutorial will show you how to take advantage of this.


Read This Article!
If you’re a subscriber and your subscription includes this issue of Nuts & Volts, you can read this article in our digital edition by clicking the blue icon in the upper right corner. Use the email address associated with your subscriber services account to login.

If you're a member of our Preferred Subscriber Network, not only will the magic blue icon let you read this article, but EVERY article in EVERY issue is yours to enjoy! Over a decades worth of content is stored in our digital archive!

If you’re not a subscriber, you can still view a few sample pages of our digital edition or subscribe here for full digital access and/or print delivery. Also, as you browse around our site, you will find selected articles have been posted in their entirety for you to enjoy.