Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 44 lines (35 sloc) 1.005 kb
cfd7b4d added licensing information on the new files
Laurent Sansonetti authored
1 /*
2 * MacRuby BridgeSupport implementation.
3 *
4 * This file is covered by the Ruby license. See COPYING for more details.
7d7d3e8 @ferrous26 Change ownership to The MacRuby Team and update copyrights
ferrous26 authored
5 *
6 * Copyright (C) 2012, The MacRuby Team. All rights reserved.
9595725 update copyrights to 2011
Laurent Sansonetti authored
7 * Copyright (C) 2007-2011, Apple Inc. All rights reserved.
cfd7b4d added licensing information on the new files
Laurent Sansonetti authored
8 */
9
10 #ifndef __BRIDGESUPPORT_H_
11 #define __BRIDGESUPPORT_H_
cb65416 the great schism, part I
Laurent Sansonetti authored
12
13 #if defined(__cplusplus)
002ed5d now compile some of the VM primitives into bitcode that will be added…
Laurent Sansonetti authored
14 extern "C" {
15 #endif
16
70ea0b5 per-vm method cache + misc fixes/improvements
Laurent Sansonetti authored
17 #include "bs.h"
18
002ed5d now compile some of the VM primitives into bitcode that will be added…
Laurent Sansonetti authored
19 void *rb_pointer_get_data(VALUE rcv, const char *type);
20 VALUE rb_pointer_new(const char *type_str, void *val, size_t len);
21 VALUE rb_pointer_new2(const char *type_str, VALUE val);
22 bool rb_boxed_is_type(VALUE klass, const char *type);
23
24 #if defined(__cplusplus)
25 } // extern "C"
cb65416 the great schism, part I
Laurent Sansonetti authored
26
27 typedef struct rb_vm_bs_boxed {
28 bs_element_type_t bs_type;
29 bool is_struct(void) { return bs_type == BS_ELEMENT_STRUCT; }
30 union {
31 bs_element_struct_t *s;
32 bs_element_opaque_t *o;
33 void *v;
34 } as;
a6a5d3e started to trim out the static library
Laurent Sansonetti authored
35 #if !defined(MACRUBY_STATIC)
cb65416 the great schism, part I
Laurent Sansonetti authored
36 Type *type;
a6a5d3e started to trim out the static library
Laurent Sansonetti authored
37 #endif
cb65416 the great schism, part I
Laurent Sansonetti authored
38 VALUE klass;
39 } rb_vm_bs_boxed_t;
40
41 #endif /* __cplusplus */
42
cfd7b4d added licensing information on the new files
Laurent Sansonetti authored
43 #endif /* __BRIDGESUPPORT_H_ */
Something went wrong with that request. Please try again.