This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] CODECOMPOSER:GEL 检查符号是否存在

Guru**** 2320200 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1510106/codecomposer-gel-check-if-symbol-exists

部件号:CODECOMPOSER

工具/软件:

你(们)好

GEL 语言中是否有办法检测是否定义了符号?

伪代码示例:  

OnHalt()
{
    if( defined( myMain ) )
    {
        GEL_Go(myMain):
    }
    else
    {
        GEL_Go(main);
    }
{

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我与工程部门进行了调查、但这并不是真正可行的。 如果引用了不存在的符号、GEL 执行将失败并中止。 没有 wat 可以处理失败或检查符号是否存在。

    谢谢

    Ki