替换为C preprocessor [英] Replacements for the C preprocessor

查看:91
本文介绍了替换为C preprocessor的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我感兴趣的使用比在 C preprocessor其他的东西preprocess我的 C 和Objective-C源$ C ​​$ C。有没有好的办法?

I'm interested in using something other than the C preprocessor to preprocess my C and Objective-C source code. Are there good alternatives?

一个例子是东西,让一个逃了出去到Python和Perl片段中的 C code的中间,那里的片段吐出 C 被编译为正常。

An example would be something that allowed one to escape out into a python or perl snippet in the middle of C code, and where the snippet spit out C that is then compiled as normal.

推荐答案

您可能要考虑M4。

http://www.gnu.org/software/m4/

这篇关于替换为C preprocessor的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆