Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: refactored CS to comply with EXP45-C

...

Code Block
bgColor#ccccff
langcpp
// library.h
int func() noexcept(true); // Implemented by the library

// library.cpp
int func() noexcept(true) {
  // ...
  if (/* ... */) {
    return 42;
  }
  // ...
  return 0;
}
 
// application.cpp
#include "library.h"

void f() {
  int err;
  if (int0 != (err = funcf())) {
    // Handle error
  }
}

Risk Assessment

...