Ruby
1.9.3p448(2013-06-27revision41675)
Main Page
Modules
Data Structures
Files
File List
Globals
constant.h
Go to the documentation of this file.
1
/**********************************************************************
2
3
constant.h -
4
5
$Author$
6
created at: Sun Nov 15 00:09:33 2009
7
8
Copyright (C) 2009 Yusuke Endoh
9
10
**********************************************************************/
11
#ifndef CONSTANT_H
12
#define CONSTANT_H
13
14
typedef
enum
{
15
CONST_PUBLIC
= 0x00,
16
CONST_PRIVATE
= 0x01
17
}
rb_const_flag_t
;
18
19
typedef
struct
rb_const_entry_struct
{
20
rb_const_flag_t
flag
;
21
VALUE
value
;
/* should be mark */
22
}
rb_const_entry_t
;
23
24
VALUE
rb_mod_private_constant
(
int
argc
,
VALUE
*
argv
,
VALUE
obj);
25
VALUE
rb_mod_public_constant
(
int
argc
,
VALUE
*
argv
,
VALUE
obj);
26
void
rb_free_const_table
(
st_table
*tbl);
27
VALUE
rb_public_const_get
(
VALUE
klass,
ID
id
);
28
VALUE
rb_public_const_get_at
(
VALUE
klass,
ID
id
);
29
VALUE
rb_public_const_get_from
(
VALUE
klass,
ID
id
);
30
int
rb_public_const_defined
(
VALUE
klass,
ID
id
);
31
int
rb_public_const_defined_at
(
VALUE
klass,
ID
id
);
32
int
rb_public_const_defined_from
(
VALUE
klass,
ID
id
);
33
34
#endif
/* CONSTANT_H */
35
Generated on Fri Jun 28 2013 02:32:23 for Ruby by
1.8.3