From 9539efbb9055a41649c29d78768df157d95ecb88 Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Sat, 23 Mar 2024 19:41:03 -0400 Subject: [PATCH] love --- include/image.h | 2 +- libraries/BLT-With-Graphics-Template | 2 +- src/gp.cpp | 2 +- src/main.cpp | 19 ------------------- 4 files changed, 3 insertions(+), 22 deletions(-) diff --git a/include/image.h b/include/image.h index c0f4cf5..445da9c 100644 --- a/include/image.h +++ b/include/image.h @@ -30,7 +30,7 @@ #include using image_data_t = std::array; -inline blt::area_allocator img_allocator; +inline blt::bump_allocator img_allocator(8192); class image { diff --git a/libraries/BLT-With-Graphics-Template b/libraries/BLT-With-Graphics-Template index 129f6e3..d8b77ac 160000 --- a/libraries/BLT-With-Graphics-Template +++ b/libraries/BLT-With-Graphics-Template @@ -1 +1 @@ -Subproject commit 129f6e3fb9d6524e9fd6ece47f9bf4ea6f0a1a83 +Subproject commit d8b77acd4f6d71393e65539e3ad738aebb3375e1 diff --git a/src/gp.cpp b/src/gp.cpp index f34f16c..148f431 100644 --- a/src/gp.cpp +++ b/src/gp.cpp @@ -23,7 +23,7 @@ #include #include -blt::area_allocator node_allocator; +blt::bump_allocator node_allocator(32000); node* createNode(function_t type) { diff --git a/src/main.cpp b/src/main.cpp index ffefaba..c92be02 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -417,25 +417,6 @@ void print_bits(float f) std::cout << std::endl; } -enum class error -{ - S1, S2, S3 -}; - -struct simple -{ - float f; -}; - -blt::expected t1(bool b) -{ - float f = 50.0f * b; - if (b) - return f; - else - return error::S1; -} - void init() { global_matrices.create_internals();