You can use PHP as a C preprocessor
stackoverflow.com