I found some example C code which passes this expression as an argument to a function:
(func_end - func_start + 1)
where:
void* (func_start)(void);
void* (func_end)(void);
Unfortunately when I compile as C++ I get this error:
error: ISO C++ forbids using pointer to a function in subtraction [-fpermissive]
How do I correct this? I don’t really know how you can avoid subtraction if that’s the value required??