dxFeed Graal Native SDK 3.9.0
Loading...
Searching...
No Matches
dxfg_common.h
Go to the documentation of this file.
1// Copyright (c) 2025 Devexperts LLC.
2// SPDX-License-Identifier: MPL-2.0
3
8
9#ifndef DXFG_COMMON_H
10#define DXFG_COMMON_H
11
12#ifdef __cplusplus
13extern "C" {
14# include <cstdint>
15#else
16# include <stdint.h>
17#endif
18
19#include "graal_isolate.h"
20
24
25#ifndef DXFG_OUT
26# ifndef DOXYGEN_SHOULD_SKIP_THIS
27# define DXFG_OUT
28# endif // DOXYGEN_SHOULD_SKIP_THIS
29#endif /* DXFG_OUT */
30
35#ifndef DXFG_DEPRECATED
36# if defined(__cplusplus) && __cplusplus >= 201402L
37# define DXFG_DEPRECATED(message) [[deprecated(message)]]
38# elif defined(__GNUC__) || defined(__clang__)
39# define DXFG_DEPRECATED(message) __attribute__((deprecated(message)))
40# elif defined(_MSC_VER)
41# define DXFG_DEPRECATED(message) __declspec(deprecated(message))
42# else
43# define DXFG_DEPRECATED(message)
44# endif
45#endif /* DXFG_DEPRECATED */
46
50#define DXFG_EXECUTE_SUCCESSFULLY ((int32_t)0)
51
56#define DXFG_EXECUTE_FAIL ((int32_t)-1)
57
63
74 dxfg_string_to_double_map_entry_t *mapEntries, int32_t size);
75
84int32_t dxfg_free(graal_isolatethread_t *thread, void *pointer);
85
95int32_t dxfg_free_strings(graal_isolatethread_t *thread, char** strings, int32_t size);
96 // end of Common
98
99#ifdef __cplusplus
100}
101#endif
102
103#endif // DXFG_COMMON_H
The functions of GraalVM that create, attach to and tear down an isolate, the instance of the SDK in ...
struct __graal_isolatethread_t graal_isolatethread_t
Definition graal_isolate.h:59
int32_t dxfg_free_strings(graal_isolatethread_t *thread, char **strings, int32_t size)
int32_t dxfg_free(graal_isolatethread_t *thread, void *pointer)
int32_t dxfg_free_string_to_double_map_entries(graal_isolatethread_t *thread, dxfg_string_to_double_map_entry_t *mapEntries, int32_t size)
Single map entry. A pair of string and double.
Definition dxfg_common.h:59
double value
Definition dxfg_common.h:61
const char * key
Definition dxfg_common.h:60