mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-25 15:20:31 -04:00
Formatted code (#1007)
* Updated style * Updated files * fixed new line * Updated spacing * File fix WIP * Updated to clang 13 * updated comment style * Removed old comment code
This commit is contained in:
parent
7aca7ce74d
commit
033c4e9a5b
599 changed files with 70746 additions and 66896 deletions
|
@ -29,18 +29,18 @@
|
|||
* undefined reference to `__dso_handle'.
|
||||
* Comes up when using random C++ features, e.g. lambdas or std::function?
|
||||
*/
|
||||
void *__dso_handle;
|
||||
void* __dso_handle;
|
||||
|
||||
/* prevents the exception handling name demangling code getting pulled in */
|
||||
namespace __gnu_cxx {
|
||||
void __verbose_terminate_handler() {
|
||||
}
|
||||
void __verbose_terminate_handler() {
|
||||
}
|
||||
} // namespace __gnu_cxx
|
||||
|
||||
/* NOTE: Hack to address bloat when using C++ class virtual destructors.
|
||||
*/
|
||||
extern "C" __attribute__((weak)) void __cxa_pure_virtual(void) {
|
||||
chSysHalt();
|
||||
chSysHalt();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -49,6 +49,8 @@ extern "C" __attribute__((weak)) void __cxa_pure_virtual(void) {
|
|||
* _exit().
|
||||
*/
|
||||
extern "C" void abort() {
|
||||
/* while() loop to avoid noreturn-is-returning warning. */
|
||||
while(1) { chSysHalt(); }
|
||||
/* while() loop to avoid noreturn-is-returning warning. */
|
||||
while (1) {
|
||||
chSysHalt();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue