blob: 0ce8f5fc46d6c56c8094ba1232f2457256465afd (
plain)
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
49
50
51
52
53
54
55
56
|
/* -------------------------------------------
Copyright (C) 2024, ELMH GROUP, all rights reserved.
File: Macros.h
Purpose: SCIKit Macros header.
------------------------------------------- */
#pragma once
/***********************************************************************************/
/// @file SCIKit/Macros.h
/// @brief Macros and core types.
/***********************************************************************************/
#include <SCIKit/CompilerHint.h>
#define ATTRIBUTE(X) __attribute__((X))
#define IMPORT_CXX extern "C++"
#define IMPORT_C extern "C"
#define DEPRECATED ATTRIBUTE(deprecated)
typedef bool Bool;
typedef void Void;
typedef __UINT64_TYPE__ UInt64;
typedef __UINT32_TYPE__ UInt32;
typedef __UINT16_TYPE__ UInt16;
typedef __UINT8_TYPE__ UInt8;
typedef __SIZE_TYPE__ SizeT;
typedef __INT64_TYPE__ SInt64;
typedef __INT32_TYPE__ SInt32;
typedef __INT16_TYPE__ SInt16;
typedef __INT8_TYPE__ SInt8;
typedef void* VoidPtr;
typedef __UINTPTR_TYPE__ UIntPtr;
typedef char Char;
typedef VoidPtr SCIObject;
typedef SCIObject IOObject;
typedef IOObject FSObject;
typedef SCIObject DLLObject;
typedef SCIObject ThreadObject;
typedef SCIObject SocketObject;
#ifdef SYSCALL_DECL
#undef SYSCALL_DECL
#endif // SYSCALL_DECL
#define SYSCALL_DECL(NAME, ...) IMPORT_C VoidPtr NAME(__VA_ARGS__);
|