Fixed sim_debug macro implementation to allow for the case when a sim_debug invocation is used as a single expression following an if condition. Found by Michael Bloom
This commit is contained in:
parent
5863e1bc38
commit
7c51414228
1 changed files with 1 additions and 1 deletions
2
scp.h
2
scp.h
|
@ -131,7 +131,7 @@ void sim_debug (uint32 dbits, DEVICE* dptr, const char* fmt, ...);
|
||||||
#else
|
#else
|
||||||
void _sim_debug (uint32 dbits, DEVICE* dptr, const char* fmt, ...);
|
void _sim_debug (uint32 dbits, DEVICE* dptr, const char* fmt, ...);
|
||||||
extern FILE *sim_deb; /* debug file */
|
extern FILE *sim_deb; /* debug file */
|
||||||
#define sim_debug(dbits, dptr, ...) if (sim_deb && ((dptr)->dctrl & dbits)) _sim_debug (dbits, dptr, __VA_ARGS__)
|
#define sim_debug(dbits, dptr, ...) if (sim_deb && ((dptr)->dctrl & dbits)) _sim_debug (dbits, dptr, __VA_ARGS__); else 0
|
||||||
#endif
|
#endif
|
||||||
void fprint_stopped_gen (FILE *st, t_stat v, REG *pc, DEVICE *dptr);
|
void fprint_stopped_gen (FILE *st, t_stat v, REG *pc, DEVICE *dptr);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue