Functions: use raw allocator for function signature

This allows multi-functions to have static storage duration.
This commit is contained in:
Jacques Lucke
2020-06-30 18:01:14 +02:00
parent 613f62d15c
commit d67b7f3b52

View File

@@ -33,9 +33,10 @@ namespace fn {
struct MFSignature {
std::string function_name;
Vector<std::string> param_names;
Vector<MFParamType> param_types;
Vector<uint> param_data_indices;
/* Use RawAllocator so that a MultiFunction can have static storage duration. */
Vector<std::string, 4, RawAllocator> param_names;
Vector<MFParamType, 4, RawAllocator> param_types;
Vector<uint, 4, RawAllocator> param_data_indices;
uint data_index(uint param_index) const
{