Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MISRA 8.5 with inline function
#2
Resolved following C99 standard:

declared in my_file.h

Code:
extern void my_func(void);

and defined in my_file.c

Code:
inline void my_func(void)
{
    /* DO SOMETHING */
}

my_func is callable from other modules and code is MISRA 8.5 fully compliant.

Regards

Andrea Mocci, embedded SW developer @ Akhela s.r.l.
<t></t>
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)