2021-01-27 21:26:19 +00:00
|
|
|
#pragma once
|
2020-12-02 23:18:49 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2022-04-10 00:01:16 +00:00
|
|
|
int _feature_has(const char *name);
|
|
|
|
|
|
|
|
#ifdef MCPI_SERVER_MODE
|
|
|
|
#define _feature_has__server_defaul_is_server_disabled(name) 0
|
|
|
|
#define _feature_has__server_defaul_is_server_auto(name) _feature_has(name)
|
|
|
|
#define _feature_has__server_defaul_is_server_enabled(name) 1
|
|
|
|
#define feature_has(name, server_default) _feature_has__server_defaul_is_##server_default(name)
|
|
|
|
#else
|
|
|
|
#define feature_has(name, server_default) _feature_has(name)
|
|
|
|
#endif
|
2020-12-02 23:18:49 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|