Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【llbc】LLBC_DoIf/LLBC_LogAndDoIf内部使用continue/break时的bug #204

Closed
lailongwei opened this issue Jul 26, 2023 · 0 comments
Closed
Assignees
Labels

Comments

@lailongwei
Copy link
Owner

lailongwei commented Jul 26, 2023

LLBC_DoIf/LLBC_LogAndDoIf内部使用了do {} while (false)的范式,导致如果使用者使用时,参数中使用了continue/break产生bug,使用者希望是跳出自己的loop,**但实际上跳出的是LLBC_DoIf/LLBC_LogAndDoIf宏内的do {} while (false)循环。

修改:
调整为 if {} 外再包一个{}的方式来代替,同时补充必要的TestCase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants