todo emscript for ptr_storage

main
Brett 2025-04-11 15:16:54 -04:00
parent 1b4ad25bcf
commit c241085afb
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.20)
include(cmake/color.cmake)
set(BLT_VERSION 5.2.42)
set(BLT_VERSION 5.2.43)
set(BLT_TARGET BLT)

View File

@ -283,6 +283,7 @@ namespace blt::mem
template<typename T, std::enable_if_t<!std::is_same_v<T, bit_storage>, bool> = false>
pointer_storage& storage(const T& type)
{
// TODO!! Emscript support!
#ifndef __EMSCRIPTEN__
static_assert(sizeof(T) <= sizeof(std::uintptr_t), "Type takes too many bits to be stored!");
static constexpr std::uintptr_t store_bits = (2 << (bit_storage::AVAILABLE_BITS - 1)) - 1;