µ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
24
void
25
_init
(
void
);
26
27
void
28
_fini
(
void
);
29
30
void
31
__attribute__((weak))
32
_init
(
void
)
33
{
34
}
35
36
void
37
__attribute__((weak))
38
_fini
(
void
)
39
{
40
}
41
42
#pragma GCC diagnostic pop
43
44
// ----------------------------------------------------------------------------
_fini
void _fini(void)
Definition
init-fini.c:38
_init
void _init(void)
Definition
init-fini.c:32
src
libc
stdlib
init-fini.c
Generated by
1.9.7