Skip to content

jotux/MacroExpander

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this?

This is a site that takes C/C++ code and runs it through the gcc preprocessor.

Why?

A while ago I was working on a tricky nested C macro and had a lot of trouble visualizing the result. After googling around I found out gcc can run a file through the preprocessor with gcc -E filename.c. I threw together a C# app in a few minutes and thought would make a neat site so I rewrote it in python.

How does it work?

The site uses bottle to run the web site. When text is passed to it, it runs it through gcc and returns the parsed output.

About

A site that expands C/C++ macros and displays the result.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors