FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
include/ssengine/ssengine.h at master · ssengine/include · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
ssengine
/
include
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
1
Code
Issues
0
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
include
/
ssengine
/
ssengine.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
49 lines (40 loc) · 900 Bytes
Breadcrumbs
include
/
ssengine
/
ssengine.h
Copy path
File metadata and controls
49 lines (40 loc) · 900 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#
pragma
once
#
define
_CRTDBG_MAP_ALLOC
#
include
<
crtdbg.h
>
#
if
defined(WIN32)
#
if
defined(BUILDING_SS_CORE)
#
define
SS_CORE_API
__declspec
(dllexport)
#
else
#
define
SS_CORE_API
__declspec
(dllimport)
#endif
#
else
#
define
SS_CORE_API
#
endif
#
if
defined(WIN32)
#
define
SS_EXPORT
__declspec
(dllexport)
#
else
#
define
SS_EXPORT
#
endif
#
include
<
wchar.h
>
#
if
defined(__cplusplus)
extern
"
C
"
{
#endif
//
TODO: move to another place.
SS_CORE_API
wchar_t
*
char2wchar_t
(
const
char
*);
SS_CORE_API
char
*
wchar_t2char
(
const
wchar_t
*);
#
ifdef
__cplusplus
}
#
include
<
string
>
inline
std::wstring
string2wstring
(
const
std::string& str){
wchar_t
* tmp =
char2wchar_t
(str.
c_str
());
std::wstring ret = tmp;
delete[]
tmp;
return
ret;
}
inline
std::string
wstring2string
(
const
std::wstring& other){
char
* tmp =
wchar_t2char
(other.
c_str
());
std::string ret = tmp;
delete[]
tmp;
return
ret;
}
#
endif
Back
|
FazBrowse Home
|
New Git URL