/****************************************************************************** TrickLibrary extra インラインアセンブラユーティリティモジュール インラインアセンブラユーティリティモジュールヘッダファイル Coded by Wraith in Jan 3, 2004. ******************************************************************************/ // Tab幅を4文字に設定して表示させてください。 // ■ dwarf.h /////////////////////////////////////////////////////////////////////////////// // // ■ dwarf.h // http://tricklib.com/cxx/ex/dwarf/dwarf.h // // □ リファレンス・サポートページ // http://tricklib.com/cxx/ex/dwarf/ // // □ ライセンス情報 // http://tricklib.com/license.htm // #ifndef __DWARF_H__ #define __DWARF_H__ #if defined(__GNUC__) # define ASM_HEX(X) "$0x" #X #elif defined(__BORLANDC__) # pragma inline # define ASM_HEX(X) 0##X##h # define ASM_MEMBER(X) .X #elif defined(__INTEL_COMPILER) # define ASM_HEX(X) 0##X##h # define ASM_MEMBER(X) this.X //# define ASM_MEMBER(X) .X // こっちでもOK。 #elif defined(_MSC_VER) # define ASM_HEX(X) 0##X##h # define ASM_MEMBER(X) this.X #elif defined(__MWERKS__) # define ASM_HEX(X) 0x##X # define ASM_MEMBER(X) X #elif defined(__DMC__) # define ASM_HEX(X) 0##X##h # define ASM_MEMBER(X) X //# define ASM_MEMBER(X) .X // こっちでもOK。 #else # define ASM_HEX(X) 0##X##h #endif #if defined(ASM_MEMBER) # define ASM_MEMBER_EX(X, num) ASM_MEMBER(X) #else # define ASM_MEMBER_EX(X, num) [num] #endif #endif // __DWARF_H__ /****************************************************************************** □■□■ Wraith the Trickster □■□■ ■□■□ 〜I'll go with heaven's advantage and fool's wisdom.〜 ■□■□ ******************************************************************************/