svvitch
digital signage player
D:/vs_workspace/switch_sf/src/svvitch/Common.h File Reference
#include <windows.h>
#include <stdio.h>
Include dependency graph for Common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define toF(V)   ((Float)(V))
 Float型へのキャストマクロ
#define toI(V)   ((Sint32)(V))
 Sint32型へのキャストマクロ
#define F(V)   toF(V)
#define L(V)   toI(V)
#define PI   (3.141592653589793238462643383279f)
 π.
#define PI2   (6.283185307179586476925286766559f)
 
#define REV(V)   toF(1.0f/toF(V))
 逆数算出マクロ
#define SAFE_DELETE(p)   { if(p) { delete (p); (p)=NULL; } }
#define SAFE_RELEASE(p)   { if(p) { (p)->Release(); (p)=NULL; } }
#define ERROR_EXIT()   { int line = __LINE__; const char *file = __FILE__;¥

Typedefs

typedef char Sint8
 signed char 型の別定義
typedef short Sint16
 signed short 型の別定義
typedef long Sint32
 signed long 型の別定義
typedef __int64 Sint64
 signed __int64 型の別定義
typedef unsigned char Uint8
 unsigned char 型の別定義
typedef unsigned short Uint16
 unsigned short 型の別定義
typedef unsigned long Uint32
 unsigned long 型の別定義
typedef unsigned __int64 Uint64
 unsigned __int64 型の別定義
typedef float Float
 Float 型の別定義
typedef float Float32
 Float 型の別定義
typedef double Float64
 double 型の別定義
typedef bool Bool
 Bool 型の別定義

Functions

¥ _splitpath (file, drive, dir, fname, ext)
¥ sprintf (msg,"何らかのエラーが発生したためアプリケーションを終了します¥r¥n"¥"ファイル : %s%s¥r¥n"¥"行番号 : %d", fname, ext, line)
¥ MessageBox (NULL, msg,"Error", MB_OK|MB_ICONEXCLAMATION)
¥ PostQuitMessage (1)

Variables

char msg [_MAX_FNAME+_MAX_EXT+256]
¥ char drive [_MAX_DRIVE]
¥ char dir [_MAX_DIR]
¥ char fname [_MAX_FNAME]
¥ char ext [_MAX_EXT]

Define Documentation

#define ERROR_EXIT ( )    { int line = __LINE__; const char *file = __FILE__;¥

Definition at line 39 of file Common.h.

#define F (   V)    toF(V)

Definition at line 25 of file Common.h.

#define L (   V)    toI(V)

Definition at line 26 of file Common.h.

#define PI   (3.141592653589793238462643383279f)

π.

Definition at line 28 of file Common.h.

#define PI2   (6.283185307179586476925286766559f)

Definition at line 29 of file Common.h.

#define REV (   V)    toF(1.0f/toF(V))

逆数算出マクロ

Definition at line 30 of file Common.h.

#define SAFE_DELETE (   p)    { if(p) { delete (p); (p)=NULL; } }

Definition at line 33 of file Common.h.

#define SAFE_RELEASE (   p)    { if(p) { (p)->Release(); (p)=NULL; } }

Definition at line 36 of file Common.h.

#define toF (   V)    ((Float)(V))

Float型へのキャストマクロ

Definition at line 23 of file Common.h.

#define toI (   V)    ((Sint32)(V))

Sint32型へのキャストマクロ

Definition at line 24 of file Common.h.


Typedef Documentation

typedef bool Bool

Bool 型の別定義

Definition at line 21 of file Common.h.

typedef float Float

Float 型の別定義

Definition at line 18 of file Common.h.

typedef float Float32

Float 型の別定義

Definition at line 19 of file Common.h.

typedef double Float64

double 型の別定義

Definition at line 20 of file Common.h.

typedef short Sint16

signed short 型の別定義

Definition at line 11 of file Common.h.

typedef long Sint32

signed long 型の別定義

Definition at line 12 of file Common.h.

typedef __int64 Sint64

signed __int64 型の別定義

Definition at line 13 of file Common.h.

typedef char Sint8

signed char 型の別定義

Definition at line 10 of file Common.h.

typedef unsigned short Uint16

unsigned short 型の別定義

Definition at line 15 of file Common.h.

typedef unsigned long Uint32

unsigned long 型の別定義

Definition at line 16 of file Common.h.

typedef unsigned __int64 Uint64

unsigned __int64 型の別定義

Definition at line 17 of file Common.h.

typedef unsigned char Uint8

unsigned char 型の別定義

Definition at line 14 of file Common.h.


Function Documentation

¥ _splitpath ( file  ,
drive  ,
dir  ,
fname  ,
ext   
)
¥ MessageBox ( NULL  ,
msg  ,
"Error"  ,
MB_OK|  MB_ICONEXCLAMATION 
)

Here is the caller graph for this function:

¥ PostQuitMessage ( )

Here is the caller graph for this function:

¥ sprintf ( msg  ,
"何らかのエラーが発生したためアプリケーションを終了します¥r¥n"¥"ファイル : %s%s¥r¥n"¥"行番号 : %d"  ,
fname  ,
ext  ,
line   
)

Variable Documentation

¥ char dir[_MAX_DIR]

Definition at line 42 of file Common.h.

¥ char drive[_MAX_DRIVE]

Definition at line 41 of file Common.h.

¥ char ext[_MAX_EXT]

Definition at line 44 of file Common.h.

¥ char fname[_MAX_FNAME]

Definition at line 43 of file Common.h.

char msg[_MAX_FNAME+_MAX_EXT+256]

Definition at line 40 of file Common.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines