﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-zhulimin的博客</title><link>http://www.cppblog.com/zhulimin/</link><description /><language>zh-cn</language><lastBuildDate>Wed, 15 Apr 2026 02:42:13 GMT</lastBuildDate><pubDate>Wed, 15 Apr 2026 02:42:13 GMT</pubDate><ttl>60</ttl><item><title>macro</title><link>http://www.cppblog.com/zhulimin/archive/2009/01/21/72407.html</link><dc:creator>朱丽敏</dc:creator><author>朱丽敏</author><pubDate>Wed, 21 Jan 2009 02:48:00 GMT</pubDate><guid>http://www.cppblog.com/zhulimin/archive/2009/01/21/72407.html</guid><wfw:comment>http://www.cppblog.com/zhulimin/comments/72407.html</wfw:comment><comments>http://www.cppblog.com/zhulimin/archive/2009/01/21/72407.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/zhulimin/comments/commentRss/72407.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/zhulimin/services/trackbacks/72407.html</trackback:ping><description><![CDATA[1. THIS_FILE .vs. __FILE__ (程序员，2003-10, P101)<br>假设在某个cpp 文件中有100 处使用了new，如果直接使用__FILE__，那编译器会产生100个常量字符串，这100个字符串都是这个cpp文件的路径名，显然十分冗余。如果使用THIS_FILE，编译器只会产生一个常量字符串，那100处new的调用使用的都是指向常量字符串的指针。<br><br>    <img src ="http://www.cppblog.com/zhulimin/aggbug/72407.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/zhulimin/" target="_blank">朱丽敏</a> 2009-01-21 10:48 <a href="http://www.cppblog.com/zhulimin/archive/2009/01/21/72407.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>