Closed GuyPaddock closed 3 weeks ago
This update focuses on fixing compilation errors by adjusting preprocessor directives and adding standard macro definitions for correct conditional compilation. Specifically, it revises where #endif
and #if WITH_EDITOR
directives are placed and adds a required export API macro to a class declaration, ensuring the project builds correctly for UE 5.3 without errors.
File | Change Summary |
---|---|
.../Private/Items/PF2EquipableItemSlot.cpp |
Adjusted placement of #endif directives to correctly enclose function definitions for IsDataValid and GetIdForLogs . |
.../Private/Items/PF2EquippedItemsComponent.cpp |
Added #if WITH_EDITOR directives to conditionally compile IsDataValid and ValidateSlots functions. |
.../Public/Items/PF2EquipableItemSlot.h |
Added OPENPF2GAMEFRAMEWORK_API macro to UPF2EquipableItemSlot class inheritance. |
.../Public/Items/PF2EquippedItemsComponent.h |
Corrected #if WITH_EDITOR preprocessor directive and updated ValidateEquippedItems method declaration. |
Objective | Addressed | Explanation |
---|---|---|
Resolve compilation errors in PF2EquippedItemsComponent.cpp (Issue #67) |
✅ | |
Ensure proper conditional compilation for editor-specific code (Issue #67) | ✅ | |
Properly export public classes with API macros (Issue #67) | ✅ |
In code's bright dawn, we make our mend,
Preprocessor's threads now align and bend.
With macros in place, errors take flight,
Building smoothly into the night.
A rabbit's joy, in lines so clear,
The project thrives, no bug to fear. 🌟
[!TIP]
Early access features: enabled
We are currently testing the following features in early access: - **OpenAI `gpt-4o` model for code reviews and chat**: OpenAI claims that this model is better at understanding and generating code than the previous models. We seek your feedback over the next few weeks before making it generally available. Note: - You can enable or disable early access features from the CodeRabbit UI or by updating the CodeRabbit configuration file. - Please join our [Discord Community](https://discord.com/invite/GsXnASn26c) to provide feedback and report issues. - OSS projects are always opted into early access features.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Closes #67.