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

View File

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