commit c0975230fe0d223f9adb61532577cbe6a3cb53ab Author: Lysann Tranvouez Date: Sat Sep 27 23:12:16 2025 +0200 initial commit 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