Quantcast
Channel: MPLAB XC32
Viewing all articles
Browse latest Browse all 1537

Forcing compiler error/warning if a function parameter is not a static (Peter Ruddock)

$
0
0
Hi All,is it possible for the compiler to generate an error/warning if a parameter to a function is not a static (or global). I.E. if it is stored on the stack.e.g.

extern void func( uint16_t *val );

static uint16_t stored_in_memory;

..

Viewing all articles
Browse latest Browse all 1537

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>