FileSystemIndexer v0.1.2-beta
File System Indexer - An API to index files from your system
Loading...
Searching...
No Matches
FSIpredefines.h
Go to the documentation of this file.
1/**
2 * FSIpredefines.h - pcannonProjectStandards
3 * Predefines for C and C++ projects
4 * STD Information: 20250723 - 1.0S
5 */
6
7#ifndef INCLUDE_FSI_FSIPREDEFINES_HPP_
8#define INCLUDE_FSI_FSIPREDEFINES_HPP_
9
10#ifdef __cplusplus
11# define __FSI_DIRUTILS_PREDEF_CPP_OPEN extern "C" {
12# define __FSI_DIRUTILS_PREDEF_CPP_CLOSE }
13#else
14# define __FSI_DIRUTILS_PREDEF_CPP_OPEN
15# define __FSI_DIRUTILS_PREDEF_CPP_CLOSE
16#endif // __cplusplus
17
19
20// Project setup
21#define FSI_DEFAULT_CPP_STD 201703L
22
23// Versioning
24#define FSI_VERSION_MAJOR 0
25#define FSI_VERSION_MINOR 1
26#define FSI_VERSION_PATCH 2
27
28#define FSI_VERSION_STD 20260208
29
30// Version states:
31// * dev
32// * beta
33// * build
34#define FSI_VERSION_STATE "beta"
35
36#define FSI_VERSION ((FSI_VERSION_MAJOR<<16)|(FSI_VERSION_MINOR<<8)|(FSI_VERSION_PATCH)|(FSI_VERSION_STATE << 24))
37
38#define FSI_VERSION_CHECK(FSI_VERSION_MAJOR, FSI_VERSION_MINOR, FSI_VERSION_PATCH, FSI_VERSION_STATE) \
39 (((FSI_VERSION_MAJOR)<<16)|((FSI_VERSION_MINOR)<<8)|(FSI_VERSION_PATCH)|((FSI_VERSION_STATE) << 24))
40
41// Macro utils
42#define FSI_STRINGIFY(x) #x
43#define FSI_TOSTRING(x) FSI_STRINGIFY(x)
44
45#define FSI_FREE(x) free(x); x = NULL
46#define FSI_DEL(x) delete x; x = nullptr
47
48#ifndef FSI_DEV
49# define FSI_DEV true
50#endif
51
52#if defined(WIN32) || defined(_WIN32)
53# define FSI_OS_WIN32
54#elif defined(__APPLE__) || defined(__MACH__) || defined(Macintosh)
55# define FSI_OS_MACOS
56#elif defined(__linux__) || defined(__unix) || defined(__unix__)
57# define FSI_OS_UNIX_LINUX
58#elif defined(__FreeBSD__)
59# define FSI_OS_FREEBSD
60#else
61# warning "Current platform is not supported"
62#endif // defined(WIN32) // Platform check
63
65
66#endif // INCLUDE_FSI_FSIPREDEFINES_HPP_
67
#define __FSI_DIRUTILS_PREDEF_CPP_OPEN
FSIpredefines.h - pcannonProjectStandards Predefines for C and C++ projects STD Information: 20250723...
#define __FSI_DIRUTILS_PREDEF_CPP_CLOSE