Vaei
(Vaei)
June 12, 2016, 8:50pm
1
If possible. This will:
Prevent the indentation issues that come with macros.
Prevent nonsensical errors confusing people who are new to the engine.
UFUNCTION(BlueprintCallable, Category = "Base Character");
// Error: Function return type: Missing variable type )
Jambax
(Jambax)
June 12, 2016, 9:22pm
2
It’s a macro, so unless the C++ standards change this won’t happen.
Vaei
(Vaei)
June 12, 2016, 10:44pm
3
That’s a shame if there really is no way around it. I guess they can’t at least fix the error message either?
Edit: But you know, UE_LOG is a macro and it can use a semicolon, the macros I make for myself do also.
Jambax
(Jambax)
June 13, 2016, 9:30am
4
I think that may be because they end on a function call in the macro itself, though honestly I’m not entirely sure! Forgot about those, I also have macros I created that require Semi-Colons. I retract my previous statements…