added logging
This commit is contained in:
parent
0f62079193
commit
f872e19707
6 changed files with 341 additions and 268 deletions
14
NES Emulator/log.h
Normal file
14
NES Emulator/log.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
#ifndef _LOG_H_
|
||||
#define _LOG_H_
|
||||
|
||||
struct Bus;
|
||||
|
||||
void logBusState(struct Bus* bus);
|
||||
|
||||
#ifndef NDEBUG
|
||||
#define LOG_BUS(b) logBusState(b)
|
||||
#else
|
||||
#define LOG_BUS(b)
|
||||
#endif // NDEBUG
|
||||
|
||||
#endif // _LOG_H_
|
Loading…
Add table
Add a link
Reference in a new issue