summaryrefslogtreecommitdiff
path: root/amiga/gui.h
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2015-02-23 22:58:57 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2015-02-23 22:58:57 +0000
commit805c1a2dca04cee55cfb73ae99ae86f32c5733ca (patch)
tree2430cee19b6251309f998970bf95f86782b13220 /amiga/gui.h
parent821a13d740d7ee4d9dafffb8e78efaca49dbfc87 (diff)
downloadnetsurf-805c1a2dca04cee55cfb73ae99ae86f32c5733ca.tar.gz
netsurf-805c1a2dca04cee55cfb73ae99ae86f32c5733ca.tar.bz2
Convert hook function definitions to macros in gui.c
Diffstat (limited to 'amiga/gui.h')
-rwxr-xr-xamiga/gui.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/amiga/gui.h b/amiga/gui.h
index 246d75124..4d8344be6 100755
--- a/amiga/gui.h
+++ b/amiga/gui.h
@@ -28,6 +28,12 @@
#include "amiga/plotters.h"
#include "amiga/menu.h"
+#ifdef __amigaos4__
+#define HOOKF(ret,func,type,ptr,msgtype) static ret func(struct Hook *hook, type ptr, msgtype msg)
+#else
+#define HOOKF(ret,func,type,ptr) static ASM ret func(REG(a0, struct Hook *hook),REG(a2, type ptr), REG(a1, msgtype msg))
+#endif
+
enum
{
OID_MAIN = 0,