Sha256: 3344c8b67a6a6f1016683b20fbcb5697916a9e8c4f8e21fbb1355cb02d8788d8

Contents?: true

Size: 799 Bytes

Versions: 1

Compression:

Stored size: 799 Bytes

Contents

/* trace.h
 * 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	= '-',
} 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

1 entries across 1 versions & 1 rubygems

Version Path
oj-3.5.0 ext/oj/trace.h