summaryrefslogtreecommitdiffhomepage
path: root/src/libDDK/DriverKit/macros.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-03-01 05:48:35 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-03-01 05:48:35 +0100
commit38cddd5dc02f886e5cb3a0e386f0f7a1e6c8da86 (patch)
tree69b8bfc0a3fc403abf165d501e18b57e63a2405e /src/libDDK/DriverKit/macros.h
parent0871e5925e99e9a6f2d1eaf51ae82c7b4f740560 (diff)
feat: ddk!: Breaking changes, the DDK has been reworked in C++ instead.
chore: public, kernel: fixes and important patches. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/libDDK/DriverKit/macros.h')
-rw-r--r--src/libDDK/DriverKit/macros.h46
1 files changed, 0 insertions, 46 deletions
diff --git a/src/libDDK/DriverKit/macros.h b/src/libDDK/DriverKit/macros.h
deleted file mode 100644
index 12f9d634..00000000
--- a/src/libDDK/DriverKit/macros.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org)
-// Licensed under the Apache License, Version 2.0 (see LICENSE file)
-// Official repository: https://github.com/nekernel-org/nekernel
-
-#ifndef DRIVERKIT_MACROS_H
-#define DRIVERKIT_MACROS_H
-
-#include <stddef.h>
-#include <stdint.h>
-
-#if defined(__cplusplus)
-#define BOOL bool
-#define YES true
-#define NO false
-#define DDK_EXTERN extern "C"
-#define nil nullptr
-#undef NULL
-#define NULL 0
-#define DDK_FINAL final
-#else
-#define BOOL char
-#define YES 1
-#define NO 0
-#define DDK_EXTERN extern
-#define nil ((void*) 0)
-#undef NULL
-#define NULL ((void*) 0)
-#define DDK_FINAL
-#endif // defined(__cplusplus)
-
-#ifndef __DDK__
-#undef DDK_EXTERN
-#if defined(__cplusplus)
-#define DDK_EXTERN extern "C"
-#else
-#define DDK_EXTERN
-#endif
-#endif
-
-#define ATTRIBUTE(X) __attribute__((X))
-
-#ifndef __NEOSKRNL__
-#error !!! Do not include header in EL0/Ring 3 mode !!!
-#endif // __NEOSKRNL__
-
-#endif