File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Sources/OpenGraphCxx/DebugServer Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 2929#include < assert.h>
3030
3131OG_EXTERN_C_BEGIN
32- bool os_variant_has_internal_diagnostics (const char *subsystem);
32+ // DYLD_INTERPOSE does not work. Directly use the hook one here to match the semantics.
33+ bool og_variant_has_internal_diagnostics (const char *subsystem);
3334OG_EXTERN_C_END
3435
3536// MARK: DebugServer public API Implementation
264265 if (
265266 (mode & OGDebugServerModeValid)
266267 && !OG::DebugServer::has_shared_server ()
267- // && os_variant_has_internal_diagnostics ("org.OpenSwiftUIProject.OpenGraph")
268+ && og_variant_has_internal_diagnostics (" org.OpenSwiftUIProject.OpenGraph" )
268269 ) {
269270 _shared_server = new DebugServer (mode);
270271 }
Original file line number Diff line number Diff line change 1212
1313extern bool os_variant_has_internal_diagnostics (const char * subsystem );
1414
15- bool os_variant_has_internal_diagnostics_og_hook (const char * subsystem ) {
15+ bool og_variant_has_internal_diagnostics (const char * subsystem ) {
1616 if (strcmp (subsystem , "org.OpenSwiftUIProject.OpenGraph" ) == 0 ) {
1717 return true;
1818 } else {
1919 return os_variant_has_internal_diagnostics (subsystem );
2020 }
2121}
2222
23- DYLD_INTERPOSE (os_variant_has_internal_diagnostics_og_hook , os_variant_has_internal_diagnostics )
23+ DYLD_INTERPOSE (og_variant_has_internal_diagnostics , os_variant_has_internal_diagnostics )
You can’t perform that action at this time.
0 commit comments