Define PORTAL_HASH_CONSTEXPR

Define Documentation

PORTAL_HASH_CONSTEXPR

Macro controlling constexpr support for hash functions.

On GCC/Clang: Expands to constexpr + force inline, enabling compile-time hash computation for string literals. On MSVC: Expands to force inline only. MSVC’s constexpr implementation lacks support for 128-bit multiplication (used internally by rapidhash), preventing compile-time evaluation. Hash is still computed at runtime but highly optimized.

TODO: Find a fully constexpr hash implementation compatible with MSVC.