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

打包slua,老报SafeDelete错误 #590

Closed
modest008 opened this issue Mar 30, 2024 · 2 comments
Closed

打包slua,老报SafeDelete错误 #590

modest008 opened this issue Mar 30, 2024 · 2 comments

Comments

@modest008
Copy link

UE版本是5.2.1
windows使用visual studio 2022
打包时,经常报SafeDelete错误,找不到报错的位置
我使用mac打包了一下,也报错,并且显示出报错位置:
NiagaraShared.h(302,48): Error : expected unqualified-id
~FNiagaraDataInterfaceParamRef() { Parameters.SafeDelete(); }
^
SluaUtil.h(27,25): Reference : expanded from macro 'SafeDelete'
#define SafeDelete(ptr) { if(ptr) { delete ptr;ptr=nullptr; } }
^
1 error generated.

@zjhongxian
Copy link
Collaborator

应该是宏导致的,可以考虑把它去掉,slua代码里面的都手动改下

zjhongxian added a commit to zjhongxian/sluaunreal that referenced this issue Apr 2, 2024
@modest008
Copy link
Author

好的,谢谢,可以了

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

No branches or pull requests

2 participants