Semicolon at the end of UE_LOG

Is it just me or anyone else recognized that semicolon is never used at the end of the UE_LOG function.

Ben make it like this UE_LOG(LogTemp, Warning, TEXT(""))

While I’m always putting semicolon at the end of UE_LOG like this UE_LOG(LogTemp, Warning, TEXT(""));

Do you know why or what’s the differences? Or there is not any effect at all. Thanks!

UE_LOG is a macro, so it gets replaced by the pre-processor with real code. That replaced code probably already has a ; at the end of it, and therefore its unnecessary.

2 Likes

Thank you!

Privacy & Terms