diff options
author | benshi <benshi@4a8a32a2-be11-0410-ad9d-d568d2c75423> | 2015-04-29 04:57:50 +0000 |
---|---|---|
committer | benshi <benshi@4a8a32a2-be11-0410-ad9d-d568d2c75423> | 2015-04-29 04:57:50 +0000 |
commit | a87e5aea4cb3da3bbc711d4fbdb6e7332f1f58d7 (patch) | |
tree | 5f8197be099556557c3d849046313b71a6892b50 /support/cpp/libcpp/macro.c | |
parent | 89377d05d0895bbfefbd1d19991cde9d1b03747e (diff) |
Fix bug #1952.
git-svn-id: https://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@9224 4a8a32a2-be11-0410-ad9d-d568d2c75423
Diffstat (limited to 'support/cpp/libcpp/macro.c')
-rw-r--r-- | support/cpp/libcpp/macro.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/support/cpp/libcpp/macro.c b/support/cpp/libcpp/macro.c index 433a30a02..12d47e8e8 100644 --- a/support/cpp/libcpp/macro.c +++ b/support/cpp/libcpp/macro.c @@ -165,6 +165,16 @@ _cpp_builtin_macro_text (cpp_reader *pfile, cpp_hashnode *node) result = pbuffer->timestamp; } break; + case BT_FUNCTION: + { + uchar *buf; + buf = _cpp_unaligned_alloc (pfile, 256); + memset (buf, 255, 256); + buf[0] = buf[254] = '"'; + buf[255] = 0; + result = buf; + } + break; case BT_FILE: case BT_BASE_FILE: { |