World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
PlatformLinux.h
См. документацию.
1
#pragma once
2
3
#define _stricmp strcasecmp
4
#define _strnicmp strncasecmp
5
#define vswprintf_s vswprintf
6
#define _mbsncmp(str1, str2, maxCount) strncmp((const char*)str1, (const char*)str2, maxCount)
7
8
inline
void
_strlwr
(
char
*
src
)
9
{
10
char
* it =
src
;
11
for
(;*it;++it)
12
*it = tolower(*it);
13
}
14
15
#include <string.h>
16
inline
char
*
_strrev
(
char
*str)
17
{
18
if
(!str || ! *str)
19
return
str;
20
21
char
ch;
22
int
i = strlen(str) - 1, j = 0;
23
while
(i > j)
24
{
25
ch = str[i];
26
str[i] = str[j];
27
str[j] = ch;
28
i--;
29
j++;
30
}
31
return
str;
32
}
33
34
#include <iostream>
35
#define _flushall() std::cout.flush()
36
37
#include <unistd.h>
38
#define _access access
src
GLenum src
Definition:
SDL_opengl_glext.h:1740
_strlwr
void _strlwr(char *src)
Definition:
PlatformLinux.h:8
_strrev
char * _strrev(char *str)
Definition:
PlatformLinux.h:16
Common
PlatformLinux.h
Документация по World of Might and Magic. Последние изменения: Вт 7 Апр 2020 22:03:26. Создано системой
1.8.17