Skip to content

Commit 2caf6ca

Browse files
committed
Updated CLI11 and Pipe
1 parent 07642e1 commit 2caf6ca

4 files changed

Lines changed: 7 additions & 25 deletions

File tree

Apps/CLI/Src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ namespace rift
4646
selected = def.AsString();
4747

4848
auto stdDesc = Strings::Convert<std::string, char>(desc);
49-
app.add_option("-b,--backend", selected, stdDesc, true);
49+
app.add_option("-b,--backend", selected, stdDesc)->capture_default_str();
5050
}
5151

5252
TPtr<Backend> FindBackendByName(const TArray<TOwnPtr<Backend>>& backends, Tag name)

Extern/CLI11

Submodule CLI11 updated 298 files

Libs/Editor/Src/Tools/BigBestFitArenaDebugger.cpp

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
#include <Pipe/Core/String.h>
66
#include <PipeMath.h>
7-
#include <PipeMemory.h>
7+
#include <PipeMemoryArenas.h>
8+
#include <PipeReflect.h>
89
#include <UI/UI.h>
910

1011

@@ -146,32 +147,13 @@ namespace rift::editor
146147
UI::EndChild();
147148
}
148149

149-
BigBestFitArenaDebugger::BigBestFitArenaDebugger()
150-
{
151-
// TODO: Remove this. Testing the debugger
152-
if (auto* arena = dynamic_cast<BigBestFitArena*>(&GetCurrentArena()))
153-
{
154-
void* a = arena->Alloc(120);
155-
void* b = arena->Alloc(234);
156-
void* c = arena->Alloc(68);
157-
void* d = arena->Alloc(234);
158-
void* e = arena->Alloc(1522);
159-
void* f = arena->Alloc(344);
160-
void* g = arena->Alloc(33445);
161-
162-
arena->Free(a, 120);
163-
arena->Free(c, 68);
164-
arena->Free(e, 1522);
165-
166-
void* h = arena->Alloc(894345, 64);
167-
}
168-
}
150+
BigBestFitArenaDebugger::BigBestFitArenaDebugger() {}
169151

170152
void BigBestFitArenaDebugger::Draw()
171153
{
172154
if (open)
173155
{
174-
auto* arena = dynamic_cast<BigBestFitArena*>(&GetCurrentArena());
156+
auto* arena = p::Cast<BigBestFitArena>(&GetCurrentArena());
175157
UI::Begin("Memory", &open);
176158
if (arena)
177159
{

0 commit comments

Comments
 (0)