help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Surrounding statements with conditionals in C mode.


From: Saurabh Kapoor
Subject: Surrounding statements with conditionals in C mode.
Date: Fri, 5 Sep 2003 14:08:58 +0530

I've got several statements in my c code that i wish to surround by 
#ifdefs and #endif.

Eg. The following code :

        printf("This is debugging info: %d\n",i);
        printf("This is some more debugging info: \n");

should become

#ifdef MACRO_NAME
        printf("This is debugging info: %d\n",i);
        printf("This is some more debugging info: \n");
#endif

So, all that i have to do is to write the macro name.
Is there a way to do this. 

Thanks,
Saurabh Kapoor

III Semester,
Department of Computer Science,
University of Pune.
India.


-- 
"...BACKWARDS understood be only can but,
    forwards lived be must Life"
                              -- Kierkegaard Soren
    




reply via email to

[Prev in Thread] Current Thread [Next in Thread]