7 #if !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // pdk needs function pointer to be reentrant even for a single argument
8 int run_func0 (int (*f
) (int), int d
);
9 int run_func1 (int (*) (int), int);
13 return x
> 0 ? x
+ 1 : x
- 1;
16 int run_func0 (int (*f
) (int), int d
)
21 int run_func1 (int (*f
) (int), int d
)
29 #if !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15)
30 ASSERT (run_func0 (test_func
, 23) == 34);
31 ASSERT (run_func1 (test_func
, -23) == -34);