diff options
-rw-r--r-- | embed.fnc | 1 | ||||
-rwxr-xr-x | embed.pl | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -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 @@ -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__"; } |