#pragma once

#include <cstddef>

namespace ctypes::abi {

using FixedInvoker = void (*)(void* fn, void** args, void* ret);
inline constexpr size_t kMaxDirectArgs = 4;
inline constexpr size_t kMaxDirectAggregateSize = 64;

// Firma dichiarata: un invoker C++ fisso (Tier 1) se disponibile;
// tutte le altre firme passano dal backend AOT (CallSignature, Tier 2).
struct CallPlan {
  FixedInvoker fixed = nullptr;
};

}  // namespace ctypes::abi
