srecord: format_printf.h Source File

srecord 1.65.0

Loading...
Searching...
No Matches
format_printf.h
Go to the documentation of this file.
1//
2// srecord - manipulate eprom load files
3// Copyright (C) 2001, 2002, 2005-2008, 2010 Peter Miller
4//
5// This program is free software; you can redistribute it and/or modify
6// it under the terms of the GNU Lesser General Public License as published by
7// the Free Software Foundation; either version 3 of the License, or
8// (at your option) any later version.
9//
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU Lesser General Public License for more details.
14//
15// You should have received a copy of the GNU Lesser General Public License
16// along with this program. If not, see
17// <http://www.gnu.org/licenses/>.
18//
19
20#ifndef SRECORD_FORMAT_PRINTF_H
21#define SRECORD_FORMAT_PRINTF_H
22
23#ifdef __GNUC__
24#define FORMAT_PRINTF(x, y) __attribute__((__format__(printf, x, y)))
25#define NORETURN __attribute__((__noreturn__))
26#define DEPRECATED __attribute__((__deprecated__))
27#else
28#define FORMAT_PRINTF(x, y)
29#define DEPRECATED
30#define NORETURN
31#endif
32
33#endif // SRECORD_FORMAT_PRINTF_H