PlacementNew.h: Use Types.h

This commit is contained in:
apio 2022-11-23 17:22:16 +01:00
parent 46cad14052
commit 3b2dc5db55
3 changed files with 5 additions and 5 deletions

View File

@ -1,11 +1,11 @@
#pragma once #pragma once
#include <stddef.h> #include <Types.h>
inline void* operator new(size_t, void* p) noexcept inline void* operator new(usize, void* p) noexcept
{ {
return p; return p;
} }
inline void* operator new[](size_t, void* p) noexcept inline void* operator new[](usize, void* p) noexcept
{ {
return p; return p;
} }

View File

@ -6,7 +6,7 @@ source $(dirname $0)/env.sh
cd $LUNA_ROOT cd $LUNA_ROOT
SOURCES=($(find kernel/src -type f | grep -v "\.asm" | grep -v "bootboot.h")) SOURCES=($(find kernel/src -type f | grep -v "\.asm" | grep -v "bootboot.h"))
SOURCES+=($(find luna -type f | grep -v "CMakeLists.txt" | grep -v "Types.h" | grep -v "PlacementNew.h")) SOURCES+=($(find luna -type f | grep -v "CMakeLists.txt" | grep -v "Types.h"))
SUCCESS=1 SUCCESS=1

View File

@ -6,7 +6,7 @@ source $(dirname $0)/env.sh
cd $LUNA_ROOT cd $LUNA_ROOT
SOURCES=($(find kernel/src -type f | grep -v "\.asm" | grep -v "bootboot.h")) SOURCES=($(find kernel/src -type f | grep -v "\.asm" | grep -v "bootboot.h"))
SOURCES+=($(find luna -type f | grep -v "CMakeLists.txt" | grep -v "Types.h" | grep -v "PlacementNew.h")) SOURCES+=($(find luna -type f | grep -v "CMakeLists.txt" | grep -v "Types.h"))
for f in ${SOURCES[@]} for f in ${SOURCES[@]}
do do