DXL有一个预处理器吗
是否可以使用DXL使用简单的前处理器语句?
喜欢使用#ifdef
或#define
?
我要做的两件事是进行预处理的if语句(主要用于调试目的)
#ifdef SayHi
print "Hi"
#endif
和c之类的c
#define printHi print "Hi"
Is it possible to use simple pre-processor statements with DOORS DXL?
Like use #ifdef
or #define
?
The two main things I'm trying to do are doing pre-processed if statements (mostly for debugging purposes)
#ifdef SayHi
print "Hi"
#endif
and C like macros
#define printHi print "Hi"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是不是。 #include看起来像是一个预处理语句,但是根据我们的分析,该语句无非是解码加密包含文件,否则只需粘贴包含的文件的内容而没有进一步的ADO。
当我们将调试介绍到代码的一部分中时,我们或多或少都会使用printDebug函数调用在所有文件中替换所有“打印”语句,如果代码中的一个变量设置为1,或者如果设置为1或设置了特定的环境变量(您可以在开始门之前设置该变量)
Unfortunately not. #include looks like a preprocessing statement, but according to our analyses this statement does nothing more than decoding encrypted include files and otherwise just paste the content of the included file in place without further ado.
When we introduced debugging into parts of our code, we more or less replaced all "print" statements in all files with a printDEBUG function call, which will print to a debug file if either a variable in a code is set to 1 or if a specific environment variable is set (that you can set before starting DOORS)