Sha256: 8ef954c58b5f09a52f1eeb9efdb12a83979d467f150f40bcc261e29a99f8ed8d

Contents?: true

Size: 499 Bytes

Versions: 2

Compression:

Stored size: 499 Bytes

Contents

#ifndef _INC_ROTOSCOPE_H_
#define _INC_ROTOSCOPE_H_

#include <ruby.h>
#include <unistd.h>

#include "callsite.h"
#include "stack.h"

#define EVENT_CALL (RUBY_EVENT_CALL | RUBY_EVENT_C_CALL)
#define EVENT_RETURN (RUBY_EVENT_RETURN | RUBY_EVENT_C_RETURN)

#define STACK_CAPACITY 500

typedef struct {
  VALUE self;
  VALUE tracepoint;
  pid_t pid;
  unsigned long tid;
  bool tracing;
  rs_stack_t stack;
  rs_stack_frame_t *caller;
  rs_callsite_t callsite;
  VALUE trace_proc;
} Rotoscope;

#endif

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rotoscope-0.3.1.pre.3 ext/rotoscope/rotoscope.h
rotoscope-0.3.1.pre.2 ext/rotoscope/rotoscope.h