New placement header
This commit is contained in:
parent
6db1406d68
commit
c4a7f91d56
18 changed files with 28 additions and 4 deletions
|
|
@ -11,9 +11,6 @@ namespace tp {
|
||||||
extern ModuleManifest gModuleAllocators;
|
extern ModuleManifest gModuleAllocators;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void* operator new(std::size_t aSize, void* aWhere) noexcept { return aWhere; }
|
|
||||||
inline void* operator new[](std::size_t aSize, void* aWhere) noexcept { return aWhere; }
|
|
||||||
|
|
||||||
void* operator new(std::size_t aSize);
|
void* operator new(std::size_t aSize);
|
||||||
void* operator new[](std::size_t aSize);
|
void* operator new[](std::size_t aSize);
|
||||||
void operator delete(void* aPtr) noexcept;
|
void operator delete(void* aPtr) noexcept;
|
||||||
|
|
|
||||||
6
Allocators/public/NewPlacement.hpp
Normal file
6
Allocators/public/NewPlacement.hpp
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "Common.hpp"
|
||||||
|
|
||||||
|
inline void* operator new(std::size_t aSize, void* aWhere) noexcept { return aWhere; }
|
||||||
|
inline void* operator new[](std::size_t aSize, void* aWhere) noexcept { return aWhere; }
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
#include "NewPlacement.hpp"
|
||||||
|
|
||||||
#include "CmdLineInterpreter.hpp"
|
#include "CmdLineInterpreter.hpp"
|
||||||
|
|
||||||
#define MAX_LINE_LENGTH 1024
|
#define MAX_LINE_LENGTH 1024
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
#include "NewPlacement.hpp"
|
||||||
|
|
||||||
#include "CommandLine.hpp"
|
#include "CommandLine.hpp"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
#include "NewPlacement.hpp"
|
||||||
|
|
||||||
#include "Tests.hpp"
|
#include "Tests.hpp"
|
||||||
|
|
||||||
using namespace tp;
|
using namespace tp;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
#include "NewPlacement.hpp"
|
||||||
|
|
||||||
#include "Tests.hpp"
|
#include "Tests.hpp"
|
||||||
#include "CmdLineInterpreter.hpp"
|
#include "CmdLineInterpreter.hpp"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
|
#include "NewPlacement.hpp"
|
||||||
|
|
||||||
#include "Tests.hpp"
|
#include "Tests.hpp"
|
||||||
|
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|
||||||
tp::ModuleManifest* deps[] = { &tp::gModuleUtils, &tp::gModuleTokenizer, nullptr };
|
tp::ModuleManifest* deps[] = { &tp::gModuleUtils, &tp::gModuleTokenizer, nullptr };
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
#include "NewPlacement.hpp"
|
||||||
|
|
||||||
#include "LocalConnection.hpp"
|
#include "LocalConnection.hpp"
|
||||||
|
|
||||||
#include "bindings/Disk.hpp"
|
#include "bindings/Disk.hpp"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
|
|
||||||
|
#include "NewPlacement.hpp"
|
||||||
|
|
||||||
#include "LocalConnection.hpp"
|
#include "LocalConnection.hpp"
|
||||||
#include "Testing.hpp"
|
#include "Testing.hpp"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
#include "NewPlacement.hpp"
|
||||||
|
|
||||||
#include "Tests.hpp"
|
#include "Tests.hpp"
|
||||||
#include "Testing.hpp"
|
#include "Testing.hpp"
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
#include "NewPlacement.hpp"
|
||||||
|
|
||||||
#include "Tests.hpp"
|
#include "Tests.hpp"
|
||||||
#include "Buffer.hpp"
|
#include "Buffer.hpp"
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
#include "NewPlacement.hpp"
|
||||||
|
|
||||||
#include "Tests.hpp"
|
#include "Tests.hpp"
|
||||||
#include "Testing.hpp"
|
#include "Testing.hpp"
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
#include "NewPlacement.hpp"
|
||||||
|
|
||||||
#include "Tests.hpp"
|
#include "Tests.hpp"
|
||||||
#include "Testing.hpp"
|
#include "Testing.hpp"
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
#include "NewPlacement.hpp"
|
||||||
|
|
||||||
#include "Tests.hpp"
|
#include "Tests.hpp"
|
||||||
#include "Tree.hpp"
|
#include "Tree.hpp"
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
#include "NewPlacement.hpp"
|
||||||
|
|
||||||
#include "Logging.hpp"
|
#include "Logging.hpp"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
#include "NewPlacement.hpp"
|
||||||
|
|
||||||
#include "Tests.hpp"
|
#include "Tests.hpp"
|
||||||
#include "Strings.hpp"
|
#include "Strings.hpp"
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
#include "NewPlacement.hpp"
|
||||||
|
|
||||||
#include "Tests.hpp"
|
#include "Tests.hpp"
|
||||||
#include "StringLogic.hpp"
|
#include "StringLogic.hpp"
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
#include "NewPlacement.hpp"
|
||||||
|
|
||||||
#include "Testing.hpp"
|
#include "Testing.hpp"
|
||||||
#include "Tokenizer.hpp"
|
#include "Tokenizer.hpp"
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue