/** Function pointer tests.
+
+ type: char, int, long
*/
#include <testfwk.h>
on the z80.
*/
typedef void (*NOARGFUNPTR)(void);
-typedef void (*ONEARGFUNPTR)(int) REENTRANT;
+typedef void (*ONEARGFUNPTR)({type}) REENTRANT;
int count;
}
void
-incBy(int a) REENTRANT
+incBy({type} a) REENTRANT
{
count += a;
}
}
void
-callViaPtr2(ONEARGFUNPTR fptr, int arg)
+callViaPtr2(ONEARGFUNPTR fptr, {type} arg)
{
(*fptr)(arg);
}