Sha256: b1f03593730dfb958aa0dfbf4a1bde7abf0e0afc72df0d671e97f90c197ef285

Contents?: true

Size: 946 Bytes

Versions: 34

Compression:

Stored size: 946 Bytes

Contents

// Copyright (c) 2018 Peter Ohler. All rights reserved.
// Licensed under the MIT License. See LICENSE file in the project root for license details.

#ifndef OJ_TRACE_H
#define OJ_TRACE_H

#include <ruby.h>
#include <stdbool.h>

typedef enum {
    TraceIn      = '}',
    TraceOut     = '{',
    TraceCall    = '-',
    TraceRubyIn  = '>',
    TraceRubyOut = '<',
} TraceWhere;

struct _parseInfo;

extern void
            oj_trace(const char *func, VALUE obj, const char *file, int line, int depth, TraceWhere where);
extern void oj_trace_parse_in(const char *func, struct _parseInfo *pi, const char *file, int line);
extern void
            oj_trace_parse_call(const char *func, struct _parseInfo *pi, const char *file, int line, VALUE obj);
extern void oj_trace_parse_hash_end(struct _parseInfo *pi, const char *file, int line);
extern void oj_trace_parse_array_end(struct _parseInfo *pi, const char *file, int line);

#endif /* OJ_TRACE_H */

Version data entries

34 entries across 34 versions & 2 rubygems

Version Path
devcycle-ruby-server-sdk-2.0.0 vendor/bundle/ruby/3.0.0/gems/oj-3.13.2/ext/oj/trace.h
oj-3.13.23 ext/oj/trace.h
oj-3.13.22 ext/oj/trace.h
oj-3.13.21 ext/oj/trace.h
oj-3.13.20 ext/oj/trace.h
oj-3.13.19 ext/oj/trace.h
oj-3.13.18 ext/oj/trace.h
oj-3.13.17 ext/oj/trace.h
oj-3.13.16 ext/oj/trace.h
oj-3.13.15 ext/oj/trace.h
oj-3.13.14 ext/oj/trace.h
oj-3.13.13 ext/oj/trace.h
oj-3.13.12 ext/oj/trace.h
oj-3.13.11 ext/oj/trace.h
oj-3.13.10 ext/oj/trace.h
oj-3.13.9 ext/oj/trace.h
oj-3.13.8 ext/oj/trace.h
oj-3.13.7 ext/oj/trace.h
oj-3.13.6 ext/oj/trace.h
oj-3.13.5 ext/oj/trace.h