store<M, T> method
Implementation
void store<M, T>(String n, Defi<M> m) {
switch (M) {
case const (SPI):
_spi
.putIfAbsent(T, () => {})
.putIfAbsent(n, () => [])
.add(m as Defi<SPI>);
case const (MPI):
_mpi.putIfAbsent(T, () => m as Defi<MPI>);
default:
throw Exception('unknown macro: $M');
}
}