Sha256: cc57c002277d42eed11ea3bd25326a148e1e7ebebde656827c8d5913d94e0072

Contents?: true

Size: 737 Bytes

Versions: 18

Compression:

Stored size: 737 Bytes

Contents

#pragma once

// Used to mark symbols to be exported to the outside of the extension.
// Consider very carefully before tagging a function with this.
#define DDTRACE_EXPORT __attribute__ ((visibility ("default")))

// Used to mark function arguments that are deliberately left unused
#ifdef __GNUC__
  #define DDTRACE_UNUSED  __attribute__((unused))
#else
  #define DDTRACE_UNUSED
#endif

// @ivoanjo: After trying to read through https://stackoverflow.com/questions/3437404/min-and-max-in-c I decided I
// don't like C and I just implemented this as a function.
inline static uint64_t uint64_max_of(uint64_t a, uint64_t b) { return a > b ? a : b; }
inline static uint64_t uint64_min_of(uint64_t a, uint64_t b) { return a > b ? b : a; }

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
ddtrace-1.18.0 ext/ddtrace_profiling_native_extension/helpers.h
ddtrace-1.17.0 ext/ddtrace_profiling_native_extension/helpers.h
ddtrace-1.16.2 ext/ddtrace_profiling_native_extension/helpers.h
ddtrace-1.16.1 ext/ddtrace_profiling_native_extension/helpers.h
ddtrace-1.16.0 ext/ddtrace_profiling_native_extension/helpers.h
ddtrace-1.15.0 ext/ddtrace_profiling_native_extension/helpers.h
ddtrace-1.14.0 ext/ddtrace_profiling_native_extension/helpers.h
ddtrace-1.13.1 ext/ddtrace_profiling_native_extension/helpers.h
ddtrace-1.13.0 ext/ddtrace_profiling_native_extension/helpers.h
ddtrace-1.12.1 ext/ddtrace_profiling_native_extension/helpers.h
ddtrace-1.12.0 ext/ddtrace_profiling_native_extension/helpers.h
ddtrace-1.11.1 ext/ddtrace_profiling_native_extension/helpers.h
ddtrace-1.11.0 ext/ddtrace_profiling_native_extension/helpers.h
ddtrace-1.11.0.beta1 ext/ddtrace_profiling_native_extension/helpers.h
ddtrace-1.10.1 ext/ddtrace_profiling_native_extension/helpers.h
ddtrace-1.10.0 ext/ddtrace_profiling_native_extension/helpers.h
ddtrace-1.9.0 ext/ddtrace_profiling_native_extension/helpers.h
ddtrace-1.8.0 ext/ddtrace_profiling_native_extension/helpers.h