DXL有一个预处理器吗

发布于 2025-01-30 19:32:21 字数 243 浏览 2 评论 0原文

是否可以使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

百合的盛世恋 2025-02-06 19:32:22

不幸的是不是。 #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)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文