NERoom SDK V1.36.0
载入中...
搜索中...
未找到
error_code_defines.h
浏览该文件的文档.
1// Copyright (c) 2022 NetEase, Inc. All rights reserved.
2// Use of this source code is governed by a MIT license that can be
3// found in the LICENSE file.
4
11#ifndef ERROR_CODE_DEFINES_H
12#define ERROR_CODE_DEFINES_H
13
14#ifdef __clang__
15#if __has_extension(attribute_deprecated_with_message)
16#define ROOMKIT_DEPRECATED(message) __attribute__((deprecated(message)))
17#endif
18#elif defined(__GNUC__) // not clang (gcc comes later since clang emulates gcc)
19#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5))
20#define ROOMKIT_DEPRECATED(message) __attribute__((deprecated(message)))
21#elif (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
22#define ROOMKIT_DEPRECATED(message) __attribute__((__deprecated__))
23#endif // GNUC version
24#elif defined(_MSC_VER) // MSVC (after clang because clang on Windows emulates
25 // MSVC)
26#define ROOMKIT_DEPRECATED(message) __declspec(deprecated(message))
27#endif // __clang__ || __GNUC__ || _MSC_VER
28
29#if !defined(ROOMKIT_DEPRECATED)
30#define ROOMKIT_DEPRECATED(message)
31#endif // if !defined(ROOMKIT_DEPRECATED)
32
33namespace neroom {
34
38using NEErrorCode = enum tagNEErrorCode {
39 kNEError = -1,
40 kNENoError = 0,
41};
42
43} // namespace neroom
44
45#endif // ERROR_CODE_DEFINES_H
enum tagNEErrorCode { kNEError=-1, kNENoError=0, } NEErrorCode
接口错误码