require HOOK_CPU definition in cpuhook.c

This commit is contained in:
feos 2019-04-25 20:27:02 +03:00
parent b24541938a
commit e4d2e04f48
2 changed files with 9 additions and 1 deletions

View File

@ -2,6 +2,8 @@
* Genesis Plus GX
* CPU hooking support
*
* HOOK_CPU should be defined in a makefile or MSVC project to enable this functionality
*
* Copyright feos (2019)
*
* Redistribution and use of this code or any derivative works are permitted
@ -36,6 +38,8 @@
*
****************************************************************************************/
#ifdef HOOK_CPU
#include <stdio.h>
#include "cpuhook.h"
@ -44,4 +48,6 @@ void(*cpu_hook)(hook_type_t type, int width, unsigned int address, unsigned int
void set_cpu_hook(void(*hook)(hook_type_t type, int width, unsigned int address, unsigned int value))
{
cpu_hook = hook;
}
}
#endif /* HOOK_CPU */

View File

@ -2,6 +2,8 @@
* Genesis Plus GX
* CPU hooking support
*
* HOOK_CPU should be defined in a makefile or MSVC project to enable this functionality
*
* Copyright DrMefistO (2018-2019)
*
* Copyright feos (2019)