Can UnreadHeaderTool handle #ifdef?
I tried to include a header conditionally, but I am getting the following error:
"In MyActor: Unmatched '#endif' in class or global scope"
Here is the relevant part of the header I am using #ifdef in:
The header inside ifdef/endif isn't important - I get the same error even when there's nothing between ifdef and endif.
Is there a way around this problem?
asked Apr 24 '14 at 08:53 PM in C++ Programming
It seems that #ifdef (and #ifndef) aren't currently supported, however we have a pull request which should fix that: https://github.com/EpicGames/UnrealEngine/pull/67
Could you try using the following instead:
answered Apr 24 '14 at 09:08 PM
Jamie Dale STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here