From c0975230fe0d223f9adb61532577cbe6a3cb53ab Mon Sep 17 00:00:00 2001 From: Lysann Tranvouez Date: Sat, 27 Sep 2025 23:12:16 +0200 Subject: [PATCH] initial commit --- .idea/.gitignore | 10 ++ .idea/.name | 1 + .idea/editor.xml | 248 +++++++++++++++++++++++++++++++++++++++++ .idea/mach-detours.iml | 2 + .idea/misc.xml | 7 ++ .idea/modules.xml | 8 ++ .idea/vcs.xml | 6 + CMakeLists.txt | 9 ++ mach_detours.c | 8 ++ mach_detours.h | 3 + 10 files changed, 302 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/.name create mode 100644 .idea/editor.xml create mode 100644 .idea/mach-detours.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 CMakeLists.txt create mode 100644 mach_detours.c create mode 100644 mach_detours.h diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..bd97d22 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,10 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml +# Copilot trash +/copilot.data.migration* diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..bd40e2a --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +mach_detours \ No newline at end of file diff --git a/.idea/editor.xml b/.idea/editor.xml new file mode 100644 index 0000000..ead1d8a --- /dev/null +++ b/.idea/editor.xml @@ -0,0 +1,248 @@ + + + + + \ No newline at end of file diff --git a/.idea/mach-detours.iml b/.idea/mach-detours.iml new file mode 100644 index 0000000..f08604b --- /dev/null +++ b/.idea/mach-detours.iml @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..0b76fe5 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..620bf0c --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..b76a736 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,9 @@ +cmake_minimum_required(VERSION 4.0) +project(mach_detours C) + +set(CMAKE_C_STANDARD 23) + +add_library(mach_detours SHARED + mach_detours.c + mach_detours.h +) diff --git a/mach_detours.c b/mach_detours.c new file mode 100644 index 0000000..0e303ab --- /dev/null +++ b/mach_detours.c @@ -0,0 +1,8 @@ +#include "mach_detours.h" + +#include + +void hello(void) +{ + printf("Hello, World!\n"); +} \ No newline at end of file diff --git a/mach_detours.h b/mach_detours.h new file mode 100644 index 0000000..3d117f4 --- /dev/null +++ b/mach_detours.h @@ -0,0 +1,3 @@ +#pragma once + +void hello(); \ No newline at end of file