--- parser3/src/include/pa_hash.h 2025/01/06 19:47:18 1.105 +++ parser3/src/include/pa_hash.h 2025/05/25 20:54:30 1.106 @@ -9,7 +9,7 @@ #ifndef PA_HASH_H #define PA_HASH_H -#define IDENT_PA_HASH_H "$Id: pa_hash.h,v 1.105 2025/01/06 19:47:18 moko Exp $" +#define IDENT_PA_HASH_H "$Id: pa_hash.h,v 1.106 2025/05/25 20:54:30 moko Exp $" #include "pa_memory.h" #include "pa_types.h" @@ -104,6 +104,9 @@ inline uint hash_code(int self) { #endif +#define HASH_PUT_CSTR(h, cstr, v) \ + { static const String::Body body_##__LINE__(cstr); (h).put(body_##__LINE__, (v)); } + template class HASH: public PA_Object { protected: class Pair;