libmemalloc 0.0.0-alpha
The Magic of Memory Transmutation
Loading...
Searching...
No Matches
mock.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026 Rafael V. Volkmer <rafael.v.volkmer@gmail.com>
3 * SPDX-License-Identifier: GPL-3.0-only
4 */
5
30
31/* Include Guard */
32#if !defined(LIBMEMALLOC_MOCK_H)
33 #define LIBMEMALLOC_MOCK_H
34
35 /* Public symbol visibility for installed shared-library consumers. */
36 #if defined(_WIN32) && defined(LMA_SHARED_LIBRARY)
37 #if defined(LMA_BUILDING_SHARED)
38 #define LMA_API __declspec(dllexport)
39 #else
40 #define LMA_API __declspec(dllimport)
41 #endif
42 #elif defined(__GNUC__) || defined(__clang__)
43 #define LMA_API __attribute__((visibility("default")))
44 #else
45 #define LMA_API
46 #endif
47
48 /* C++ Compatibility */
49 #ifdef __cplusplus
50extern "C"
51{
52 #endif
53
58
59
60
61
62
63
84LMA_API int MOCK_identity(void);
85
87
88 /* C++ Compatibility */
89 #ifdef __cplusplus
90}
91 #endif
92
93#endif /* LIBMEMALLOC_MOCK_H */
94
95/* EOF */
96
int MOCK_identity(void)
Return the success result used by packaging checks.
Definition mock.c:61