summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embed.fnc1
-rwxr-xr-xembed.pl3
2 files changed, 4 insertions, 0 deletions
diff --git a/embed.fnc b/embed.fnc
index aed661b77c..f727f00a1b 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -11,6 +11,7 @@
: m Implemented as a macro - no export, no
: proto, no #define
: d function has documentation with its source
+: D function is deprecated
: s static function, should have an S_ prefix in
: source file; for macros (m), suffix the usage
: example with a semicolon
diff --git a/embed.pl b/embed.pl
index 50da23207d..9c55cb4b65 100755
--- a/embed.pl
+++ b/embed.pl
@@ -253,6 +253,9 @@ sub write_protos {
if ( $flags =~ /r/ ) {
push @attrs, "__attribute__noreturn__";
}
+ if ( $flags =~ /D/ ) {
+ push @attrs, "__attribute__deprecated__";
+ }
if ( $is_malloc ) {
push @attrs, "__attribute__malloc__";
}