Sha256: 6c159033ac694c550c39620def4c7cb96de6427c69cc04b8caa2fe623bfea37c

Contents?: true

Size: 820 Bytes

Versions: 8

Compression:

Stored size: 820 Bytes

Contents

// Copyright (c) 2018 Peter Ohler. All rights reserved.

#ifndef OJ_TRACE_H
#define OJ_TRACE_H

#include <stdbool.h>
#include <ruby.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

8 entries across 8 versions & 1 rubygems

Version Path
oj-3.11.3 ext/oj/trace.h
oj-3.11.2 ext/oj/trace.h
oj-3.11.1 ext/oj/trace.h
oj-3.11.0 ext/oj/trace.h
oj-3.10.18 ext/oj/trace.h
oj-3.10.17 ext/oj/trace.h
oj-3.10.16 ext/oj/trace.h
oj-3.10.15 ext/oj/trace.h