summaryrefslogtreecommitdiffhomepage
path: root/dev/SCIKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-11-09 10:35:48 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-11-09 10:35:48 +0100
commit84d91a9fd9c3363d0e0db581356d4cd58c03d1db (patch)
treeb7dc4d89141a8758fcd2e6447fd528d8423098ae /dev/SCIKit
parent67716b2871b1117510b26bc1aaf6fce7195272dc (diff)
IMP: Important changes to the SCI, add SysCalls.h file and SYSCALL_DECL macro.
Diffstat (limited to 'dev/SCIKit')
-rw-r--r--dev/SCIKit/Macros.h15
-rw-r--r--dev/SCIKit/SysCalls.h10
2 files changed, 25 insertions, 0 deletions
diff --git a/dev/SCIKit/Macros.h b/dev/SCIKit/Macros.h
index 114b74ef..2143c4d5 100644
--- a/dev/SCIKit/Macros.h
+++ b/dev/SCIKit/Macros.h
@@ -1,3 +1,12 @@
+/* -------------------------------------------
+
+Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+
+File: Macros.h
+Purpose: SCIKit Macros header.
+
+------------------------------------------- */
+
#pragma once
/***********************************************************************************/
@@ -39,3 +48,9 @@ typedef IOObject FSObject;
typedef SCIObject DLLObject;
typedef SCIObject ThreadObject;
typedef SCIObject SocketObject;
+
+#ifdef SYSCALL_DECL
+#undef SYSCALL_DECL
+#endif // SYSCALL_DECL
+
+#define SYSCALL_DECL(NAME, ...) IMPORT_C VoidPtr NAME(__VA_ARGS__); \ No newline at end of file
diff --git a/dev/SCIKit/SysCalls.h b/dev/SCIKit/SysCalls.h
new file mode 100644
index 00000000..6504c9c2
--- /dev/null
+++ b/dev/SCIKit/SysCalls.h
@@ -0,0 +1,10 @@
+/* -------------------------------------------
+
+Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+
+File: Macros.h
+Purpose: SCIKit Macros header.
+
+------------------------------------------- */
+
+#pragma once