Next
Previous
Contents
Try to avoid :
- macros with variable number of arguments (gcc specific)
- ' in macros (gcc doesn't like it) (i.e. no #error Didn't work !)
- inlining functions (gcc specific) (if you do, try to provide a
fallback .c file)
- avoid doing things like
(void *) struct->ptr = my_pretty_function;
and instead declare arguments like :
struct->ptr = ((int *)(int,int,int)) my_pretty_function;
- doing arithmetic on
(void *)
like in
void *bla;*(bla+10)=blubb;
.
This is GCC specific and very confusing.
Next
Previous
Contents