µOS++ IIIe Reference 7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
init-fini.c
Go to the documentation of this file.
1/*
2 * This file is part of the µOS++ distribution.
3 * (https://github.com/micro-os-plus)
4 * Copyright (c) 2015-2023 Liviu Ionescu. All rights reserved.
5 *
6 * Permission to use, copy, modify, and/or distribute this software
7 * for any purpose is hereby granted, under the terms of the MIT license.
8 *
9 * If a copy of the license was not distributed with this file, it can
10 * be obtained from https://opensource.org/licenses/mit/.
11 */
12
13// Empty initialisations. Normally should not be used, but if so,
14// they must be used as a pair, and the startup code and linker
15// script must be updated.
16
17#pragma GCC diagnostic push
18#if defined(__clang__)
19#pragma clang diagnostic ignored "-Wreserved-identifier"
20#elif defined(__GNUC__)
21#pragma GCC diagnostic ignored "-Wmissing-prototypes"
22#endif
23
24void
25_init (void);
26
27void
28_fini(void);
29
30void
31__attribute__((weak))
32_init (void)
33{
34}
35
36void
37__attribute__((weak))
38_fini (void)
39{
40}
41
42#pragma GCC diagnostic pop
43
44// ----------------------------------------------------------------------------
void _fini(void)
Definition init-fini.c:38
void _init(void)
Definition init-fini.c:32