Dynatrace OneAgent SDK for C/C++  1.7.1.1
Macros | Typedefs
onesdk_config.h File Reference

Defines platform/compiler dependent types/constants/macros. Applications should not include this file directly. More...

Go to the source code of this file.

Macros

#define ONESDK_XSTR_PRI_STR
 printf type string for a char string referenced by a onesdk_xchar_t format string.
 
#define ONESDK_STR_PRI_XSTR
 printf type string for a onesdk_xchar_t string referenced by a char format string.
 
#define ONESDK_XSTR(str)
 Macro for creating native OS character (onesdk_xchar_t) string literals.
 

Typedefs

typedef int32_t onesdk_result_t
 Type for result codes of the SDK stub. More...
 
typedef char_or_wchar_t onesdk_xchar_t
 The native character type of the operating system. wchar_t for Windows and char for other systems.
 
Integer Types

typedef int32_t onesdk_bool_t
 Type for boolean values. Zero means false, any non-zero value means true.
 
typedef int32_t onesdk_int32_t
 Signed 32 bit integer.
 
typedef int64_t onesdk_int64_t
 Signed 64 bit integer.
 
typedef uint32_t onesdk_uint32_t
 Unsigned 32 bit integer.
 
typedef uint64_t onesdk_uint64_t
 Unsigned 64 bit integer.
 
typedef size_t onesdk_size_t
 Unsigned integer type used for sizes (e.g. array sizes) and counts.
 

Detailed Description

Defines platform/compiler dependent types/constants/macros. Applications should not include this file directly.

Typedef Documentation

◆ onesdk_result_t

typedef int32_t onesdk_result_t

Type for result codes of the SDK stub.

Since we also returns native system error codes, we use uint32_t on Windows (GetLastError -> DWORD) and int32_t on other systems (errno -> int).