зеркало из https://github.com/Azure/c-pal.git
30 строки
632 B
C
30 строки
632 B
C
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
#ifndef REAL_UUID_H
|
|
#define REAL_UUID_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "macro_utils/macro_utils.h"
|
|
|
|
#define R2(X) REGISTER_GLOBAL_MOCK_HOOK(X, real_##X);
|
|
|
|
#define REGISTER_UUID_GLOBAL_MOCK_HOOK() \
|
|
MU_FOR_EACH_1(R2, \
|
|
uuid_produce, \
|
|
is_uuid_nil \
|
|
)
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
int real_uuid_produce(UUID_T destination);
|
|
bool real_is_uuid_nil(const UUID_T uuid_value);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif //REAL_UUID_H
|