Skip to content

Commit

Permalink
[0.0.19] Another try to fix build on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
DronCode committed Jul 3, 2024
1 parent b41866a commit a7d6e88
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cpp/include/RG3/Cpp/TypeClass.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ namespace rg3::cpp
// In C++ allowed to be friend of function, class, T (c++0x) and... Idk, it's really weird shit
// I will support only class & struct friends (at least now)
TypeBaseInfo sFriendTypeInfo {};

ClassFriend();
ClassFriend(TypeBaseInfo&& sInfo);
};

using ClassFriendVector = std::vector<ClassFriend>;
Expand Down
9 changes: 9 additions & 0 deletions Cpp/source/TypeClass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ namespace rg3::cpp
return !operator==(other);
}

ClassFriend::ClassFriend()
{
}

ClassFriend::ClassFriend(rg3::cpp::TypeBaseInfo&& sInfo)
: sFriendTypeInfo(std::move(sInfo))
{
}

TypeClass::TypeClass() = default;

TypeClass::TypeClass(const std::string& name, const std::string& prettyName, const rg3::cpp::CppNamespace& aNamespace, const rg3::cpp::DefinitionLocation& aLocation, const Tags& tags, const rg3::cpp::ClassPropertyVector& aProperties, const rg3::cpp::ClassFunctionVector& aFunctions, const ClassFriendVector& aFriends, bool bIsStruct, bool bTrivialConstructible, bool bHasCopyConstructor, bool bHasCopyAssignOperator, bool bHasMoveConstructor, bool bHasMoveAssignOperator, const std::vector<ClassParent>& parentTypes)
Expand Down

0 comments on commit a7d6e88

Please sign in to comment.