seattlerb/rubyinline — Issue #21: Feature request: pretty print of C code
Author: maasha
Created: 2011-11-08 09:53:28+00:00
State: open

I think it is pretty nice to let the inline code be indented according to Ruby - when in Ruby:

inline do |builder|
builder.prefix %{
#define MATCH(A,B) ((equal[A] & equal[B]) != 0)
}
end

The resulting C code will have a lot of extra white space - that does not affect the code, but properly indented code is nicer when debugging. I am pretty sure there is way to auto-correct the indentation in the C code.