netlist: Fix parsing of netlists by nltool. (nw)

This commit is contained in:
couriersud 2020-04-10 14:48:40 +02:00
parent 61da95439d
commit 011a8261eb
6 changed files with 11 additions and 23 deletions

View File

@ -2,10 +2,6 @@
// copyright-holders:Couriersud // copyright-holders:Couriersud
#include "netlist/devices/net_lib.h" #include "netlist/devices/net_lib.h"
#ifdef NLBASE_H_
#error Somehow nl_base.h made it into the include chain.
#endif
/* /*
* M51516L pins: * M51516L pins:
* *
@ -25,6 +21,8 @@
* *
*/ */
//NL_CONTAINS konami2x konami1x
static NETLIST_START(filter) static NETLIST_START(filter)
CD4066_GATE(G1) CD4066_GATE(G1)
PARAM(G1.BASER, 270.0) PARAM(G1.BASER, 270.0)

View File

@ -2,9 +2,7 @@
// copyright-holders:Couriersud // copyright-holders:Couriersud
#include "netlist/devices/net_lib.h" #include "netlist/devices/net_lib.h"
#ifdef NLBASE_H_ //NL_CONTAINS segas16b_audio
#error Somehow nl_base.h made it into the include chain.
#endif
NETLIST_START(segas16b_audio) NETLIST_START(segas16b_audio)
SOLVER(Solver, 48000) SOLVER(Solver, 48000)

View File

@ -21,10 +21,8 @@
***************************************************************************/ ***************************************************************************/
#ifndef __PLIB_PREPROCESSOR__ #define NL_PROHIBIT_BASEH_INCLUDE 1
#define NL_PROHIBIT_BASEH_INCLUDE 1 #include "netlist/devices/net_lib.h"
#include "netlist/devices/net_lib.h"
#endif
#define SLOW_BUT_ACCURATE 0 #define SLOW_BUT_ACCURATE 0

View File

@ -64,10 +64,8 @@
* *
*/ */
#ifndef __PLIB_PREPROCESSOR__ #define NL_PROHIBIT_BASEH_INCLUDE 1
#define NL_PROHIBIT_BASEH_INCLUDE 1 #include "netlist/devices/net_lib.h"
#include "netlist/devices/net_lib.h"
#endif
static NETLIST_START(rebound_schematics) static NETLIST_START(rebound_schematics)

View File

@ -7,10 +7,8 @@
***************************************************************************/ ***************************************************************************/
#ifndef __PLIB_PREPROCESSOR__ #define NL_PROHIBIT_BASEH_INCLUDE 1
#define NL_PROHIBIT_BASEH_INCLUDE 1 #include "netlist/devices/net_lib.h"
#include "netlist/devices/net_lib.h"
#endif
// gray scale // gray scale
#define SB3 0 #define SB3 0

View File

@ -7,10 +7,8 @@
***************************************************************************/ ***************************************************************************/
#ifndef __PLIB_PREPROCESSOR__ #define NL_PROHIBIT_BASEH_INCLUDE 1
#define NL_PROHIBIT_BASEH_INCLUDE 1 #include "netlist/devices/net_lib.h"
#include "netlist/devices/net_lib.h"
#endif
// gray scale // gray scale
#define SB3 0 #define SB3 0