Skip to content

About

A lazy way to insert conditional compilation in C/C++ code

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lazy_program_parser

A lazy way to insert conditional compilation in C/C++ code

this is an utility i used wile studying for an OS exam. This program saves you the burden of adding #ifdef symbolic_constant and #endif every time you need to add some debug code, or anything that will be compiled conditionally. The utility is pretty straightforwar, it uses the sytax

@ "string to printf %d\n" argument

and translates in

#ifndef CONSTANT_SPECIFIED_ON_COMMAND_LINEE

printf("string to printf %d\n", argument);

#endif

by using the command

lpp SYM_CONSTANT filename.c

About

A lazy way to insert conditional compilation in C/C++ code

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages