Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Section
Column
width35%
Code Block
languagecpp
titleTest.cc
firstline1
linenumberstrue
#include stuff.h

int goodbye(void) {

     int c << testme
     int d

     d = m.noreally_goodbye()

     return 0
} 

int noreally_goodbye(void) {

     int x << testmeagain

     return 0
} 
Column
width35%

Lines 13-18: New function, noreally_goodbye

Line 1: Include some stuff. Make sure the environment variables are correct.

Line 7: That's all she wrote!

To compile this puppy:

Code Block
languagebash
rtems-gcc --flag --option \
          --anotheroption \
          <argument>

Always be sure to:

  • De-allocate memory
  • Motherhood statement 2
  • And don't forget to de-allocate memory
 

6, 8: Allocate space for return value, call new function.

Warning

Beware calls in this context! Because:

  • There
  • Are
  • Some
  • Nasty
  • Consequences...