Newer
Older
snipet / libscpp / trunk / include / scpp_compiler.hpp
Nomura Kei on 26 Aug 2022 930 bytes old svn data to git
/* =============================================================================
 *  scpp_compiler.hpp
 *  Copyright (c)  2003 - 2011  Nomura Kei
 *  LICENSE :
 *  LGPL (GNU Lesser General General Public License - Version 3,29 June 2007)
 *  http://www.gnu.org/copyleft/lesser.html
 * =============================================================================
 *
 * コンパイラ依存のマクロ定義の差分を吸収するマクロ定義
 *
 */
#ifndef SCPP_COMPILER_HPP
#define SCPP_COMPILER_HPP


// __FUNCTION__ が定義されていない場合 __func__ (C99で定義されている)で置き換える
#ifndef __FUNCTION__
#define __FUNCTION__ __func__
#endif


/*
const class nullptr_t
{
	public:
		template<typename T> operator T*() const { return 0; }
		template<typename C, typename T> operator T C::*() const { return 0; }
	private:
		void operator&() const;
} nullptr = {}; 
*/



#endif	// SCPP_COMPILER_HPP