Sound Lib: SoundLib/Common.h ソースファイル

Sound Lib

Sound Lib
C/C++Windowsゲーム用音声再生ライブラリ
Common.h
1 //----------------------------------------------------------
2 // <filename>Common.h</filename>
3 // <author>Masami Sugao</author>
4 // <date>2018/07/16</date>
5 //----------------------------------------------------------
6 #ifndef COMMON_H
7 #define COMMON_H
8 
9 #include <stdio.h>
10 #include <tchar.h>
11 #include <string>
12 
13 
14 namespace SoundLib {
18 class Common {
19 public:
20  /* Functions ---------------------------------------------------------------------------------------- */
30  static const char* ToChar(const wchar_t* pSrc);
31 
37  template<class... Args>
38  static void OutputDebugString(const char* pStr, Args... args) {
39 #ifdef _DEBUG
40  char c[256];
41  sprintf_s(c, pStr, args...);
42  ::OutputDebugStringA(c);
43 #endif
44  }
45 };
46 }
47 
48 #endif
ライブラリ内共通処理クラス
Definition: Common.h:18
static const char * ToChar(const wchar_t *pSrc)
wchar_t文字列をcharに変換する。
Definition: Common.cpp:7
static void OutputDebugString(const char *pStr, Args... args)
デバッグログを出力する。
Definition: Common.h:38
Definition: CompressedAudio.cpp:13
構築:   doxygen 1.8.14