-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
353 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...xcframework/ios-arm64_x86_64-simulator/AttributeGraph.framework/Headers/AGCompareValues.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// AGCompareValues.h | ||
// | ||
// | ||
// Created by Kyle on 2023/10/9. | ||
// | ||
|
||
#ifndef AGCompareValues_h | ||
#define AGCompareValues_h | ||
|
||
#include <CoreFoundation/CoreFoundation.h> | ||
#include "AGComparisonMode.h" | ||
#include <stdbool.h> | ||
|
||
CF_EXTERN_C_BEGIN | ||
CF_EXPORT | ||
bool AGCompareValues(const void *lhs, const void *rhs, const AGComparisonMode comparisonMode, const void *type); | ||
CF_EXTERN_C_END | ||
|
||
#endif /* AGCompareValues_h */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
.../AttributeGraph.xcframework/ios-arm64e/AttributeGraph.framework/Headers/AGCompareValues.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// AGCompareValues.h | ||
// | ||
// | ||
// Created by Kyle on 2023/10/9. | ||
// | ||
|
||
#ifndef AGCompareValues_h | ||
#define AGCompareValues_h | ||
|
||
#include <CoreFoundation/CoreFoundation.h> | ||
#include "AGComparisonMode.h" | ||
#include <stdbool.h> | ||
|
||
CF_EXTERN_C_BEGIN | ||
CF_EXPORT | ||
bool AGCompareValues(const void *lhs, const void *rhs, const AGComparisonMode comparisonMode, const void *type); | ||
CF_EXTERN_C_END | ||
|
||
#endif /* AGCompareValues_h */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...ttributeGraph.xcframework/macos-arm64e/AttributeGraph.framework/Headers/AGCompareValues.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// AGCompareValues.h | ||
// | ||
// | ||
// Created by Kyle on 2023/10/9. | ||
// | ||
|
||
#ifndef AGCompareValues_h | ||
#define AGCompareValues_h | ||
|
||
#include <CoreFoundation/CoreFoundation.h> | ||
#include "AGComparisonMode.h" | ||
#include <stdbool.h> | ||
|
||
CF_EXTERN_C_BEGIN | ||
CF_EXPORT | ||
bool AGCompareValues(const void *lhs, const void *rhs, const AGComparisonMode comparisonMode, const void *type); | ||
CF_EXTERN_C_END | ||
|
||
#endif /* AGCompareValues_h */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import _OpenGraph | ||
|
||
public func compareValues<Value>(_ lhs: Value, _ rhs: Value, mode: OGComparisonMode = ._3) -> Bool { | ||
withUnsafePointer(to: lhs) { p1 in | ||
withUnsafePointer(to: rhs) { p2 in | ||
withUnsafePointer(to: Value.self) { metatype in | ||
OGCompareValues(p1, p2, metatype, mode) | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// OGCompareValues.cpp | ||
// | ||
// | ||
// Created by Kyle on 2023/12/20. | ||
// | ||
|
||
#include "OGCompareValues.hpp" | ||
|
||
bool OGCompareValues(const void *lhs, const void *rhs, const void *type, const OGComparisonMode comparisonMode) { | ||
// FIXME: Implement this function | ||
return false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// OGCompareValues.hpp | ||
// | ||
// | ||
// Created by Kyle on 2023/10/9. | ||
// | ||
|
||
#ifndef OGCompareValues_hpp | ||
#define OGCompareValues_hpp | ||
|
||
#include <OpenFoundation/OpenFoundation.h> | ||
#include "OGComparisonMode.hpp" | ||
#include <stdbool.h> | ||
|
||
OF_EXTERN_C_BEGIN | ||
OF_EXPORT | ||
bool OGCompareValues(const void *lhs, const void *rhs, const void *type, const OGComparisonMode comparisonMode); | ||
OF_EXTERN_C_END | ||
|
||
#endif /* OGCompareValues_hpp */ |
Oops, something went wrong.