AVRTools
A Library for the AVR ATmega328 and ATmega2560 Microcontrollers
abi.h
Go to the documentation of this file.
1 /*
2  abi.h - C++ ABI support missing from avr-gcc.
3  This is part of the AVRTools library.
4  Copyright (c) 2014 Igor Mikolic-Torreira. All right reserved.
5 
6  This program is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 
21 
39 #ifndef abi_h
40 #define abi_h
41 
42 
43 #include <stdlib.h>
44 
45 __extension__ typedef int __guard __attribute__((mode (__DI__)));
46 
47 extern "C"
48 {
49 int __cxa_guard_acquire( __guard* );
50 void __cxa_guard_release ( __guard* );
51 void __cxa_guard_abort ( __guard* );
52 
53 void __cxa_pure_virtual() __attribute__ ((__noreturn__));
54 void __cxa_deleted_virtual() __attribute__ ((__noreturn__));
55 }
56 
57 
58 
59 
60 
61 #endif