blob: e2f437aabca5dcb97e4e8f32a2d392968804058e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// license:BSD-3-Clause
// copyright-holders:Couriersud
// ***************************************************************************
//
// net_lib.cpp
//
// ***************************************************************************
#include "net_lib.h"
#include "nl_factory.h"
#include "solver/nld_solver.h"
#define NETLIB_DEVICE_DECL(chip) extern factory::constructor_ptr_t decl_ ## chip
#define LIB_DECL(decl) factory.add( decl () );
#define LIB_ENTRY(nic) { NETLIB_DEVICE_DECL(nic); LIB_DECL(decl_ ## nic) }
namespace netlist::devices {
void initialize_factory(factory::list_t &factory)
{
// The following is from a script which automatically creates
// the entries.
// FIXME: the list should be either included or the whole
// initialize factory code should be created programmatically.
#include "../generated/lib_entries.hxx"
}
} // namespace netlist::devices
|