Macros

Using Macros to Print Debug Messages in C

I have to confess: It’s my first time using macros for debug, I used to just add printf-s when developing and remove them when the code is ready – Which is and ugly and very unprofessional in my opinion.

So, I decided to start caring about how my code looks, even in development stage. Here how I use macros for debug messages. (I needed the help of a friend to get this work).

first of all, define this:

› Continue reading

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to Reddit Post to StumbleUpon

Tags: , ,

Saturday, November 22nd, 2008 Programming 5 Comments
my email
my photo
Hi,
My name is Amir Watad. I have a BSc. in biomedical engineering from The Biomedical Engineering school , Technion , Israel, and a BSc. in electrical engineering from The Electrical Engineering school , Technion , Israel.
I'm a Verification Engineer in Mellanox Technologies Ltd.
I love Linux, the Command Line and the OpenSource Community.
I used to write Poems (Arabic) when I was able to find time for this.
September 2010
S M T W T F S
« Aug    
 1234
567891011
12131415161718
19202122232425
2627282930  
SEO Powered by Platinum SEO from Techblissonline

Twitter links powered by Tweet This v1.6.1, a WordPress plugin for Twitter.