-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
60cb76e
commit 32806fd
Showing
39 changed files
with
268 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#pragma once | ||
|
||
#define TNULL nullptr | ||
#define TFALSE false | ||
#define TTRUE true | ||
#define BITFIELD(x) (1 << x) | ||
|
||
#if defined(TOSHI_RELEASE) || defined(TOSHI_DEBUG) | ||
#define TOSHI_NOTFINAL | ||
#endif | ||
|
||
#define STRINGIFY2(X) #X | ||
#define STRINGIFY(X) STRINGIFY2(X) | ||
|
||
#define STRCAT2(X, Y) X##Y | ||
#define STRCAT(X, Y) STRCAT2(X, Y) | ||
#define STRCAT_2 CAT | ||
#define STRCAT_3(X, Y, Z) STRCAT(X, STRCAT(Y, Z)) | ||
#define STRCAT_4(A, X, Y, Z) STRCAT(A, STRCAT_3(X, Y, Z)) | ||
|
||
#define HASFLAG(flag) (flag) != 0 | ||
|
||
#ifdef TOSHI_SKU_WINDOWS | ||
#define TOSHI_MULTIPLATFORM(FILENAME) STRINGIFY(STRCAT_3(Win/, FILENAME, Win.h)) | ||
#endif | ||
|
||
#ifdef TKERNELINTERFACE | ||
#define TKERNELINTERFACE_EXPORTS __declspec(dllexport) | ||
#else | ||
#define TKERNELINTERFACE_EXPORTS __declspec(dllimport) | ||
#endif | ||
|
||
#define TOSHI_API __stdcall | ||
#define TOSHI_CALLBACKAPI __cdecl | ||
|
||
#define TOSHI_NAMESPACE_BEGIN namespace Toshi { | ||
#define TOSHI_NAMESPACE_END } | ||
#define TOSHI_NAMESPACE_USING using namespace Toshi; | ||
|
||
#define TSTATICCAST(type, value) static_cast<type>(value) | ||
|
||
#define _TS8(str) #str | ||
|
||
typedef bool TBOOL; | ||
typedef int TINT; | ||
typedef unsigned int TUINT; | ||
typedef unsigned int TUINT32; | ||
typedef unsigned __int64 TUINT64; | ||
typedef short TSHORT; | ||
typedef unsigned short TUSHORT; | ||
typedef wchar_t TWCHAR; | ||
typedef unsigned short* TPWCHAR; | ||
typedef const char* TPCCHAR; | ||
typedef char* TPCHAR; | ||
typedef char TCHAR; | ||
typedef const char TCCHAR; | ||
typedef char TINT8; | ||
typedef unsigned char TUINT8; | ||
typedef unsigned char TBYTE; | ||
typedef unsigned char* TPBYTE; | ||
typedef void* TPVOID; | ||
typedef const void* TPCVOID; | ||
typedef float TFLOAT; | ||
typedef const float TCFLOAT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
|
||
TOSHI_NAMESPACE_BEGIN | ||
|
||
class TOSHI_EXPORT TCString | ||
class TKERNELINTERFACE_EXPORTS TCString | ||
{ | ||
public: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
TOSHI_NAMESPACE_BEGIN | ||
|
||
class TOSHI_EXPORT TDLL | ||
class TKERNELINTERFACE_EXPORTS TDLL | ||
{ | ||
public: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
TOSHI_NAMESPACE_BEGIN | ||
|
||
class TOSHI_EXPORT TPCString | ||
class TKERNELINTERFACE_EXPORTS TPCString | ||
{ | ||
|
||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
TOSHI_NAMESPACE_BEGIN | ||
|
||
class TOSHI_EXPORT TSystem | ||
class TKERNELINTERFACE_EXPORTS TSystem | ||
{ | ||
public: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.