Skip to content

Conversation

@skywhub
Copy link

@skywhub skywhub commented Jul 8, 2024

对于自定义导出的给lua调用的绑定函数,struct值或者引用参数传递nil会直接导致crash,对此情况新增GetArgsChecked接口用于接收参数时做检查以lua error代替直接crash。

GetArgs必定奔溃例子:UE.FVector.DistSquared(nil, UE.FVector(0,0,0))

@tencent-adm
Copy link
Member

tencent-adm commented Jul 8, 2024

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants