source: EcnlProtoTool/trunk/asp3_dcre/tecsgen/tecs/mruby/tecs_mruby.h@ 321

Last change on this file since 321 was 321, checked in by coas-nagasima, 7 years ago

文字コードを設定

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-chdr;charset=UTF-8
File size: 1.2 KB
Line 
1#ifndef tecs_mruby_h__
2#define tecs_mruby_h__
3
4#ifndef TECSGEN
5
6// tecsgen doesn't include actual mruby.h
7#include "mruby.h"
8#include "mruby/class.h"
9#include "mruby/data.h"
10#include "mruby/string.h"
11
12#include "TECSPointer.h"
13#include "TECSStruct.h"
14
15#if ! defined( MRUBY_RELEASE_MAJOR ) || MRUBY_RELEASE_MAJOR == 1 && MRUBY_RELEASE_MINOR < 2
16#ifndef MRB_ARGS_REQ
17#define MRB_ARGS_REQ(n) ARGS_REQ(n)
18#define MRB_ARGS_OPT(n) ARGS_OPT(n)
19#define MRB_ARGS_ARG(n1,n2) ARGS_ARG(n1,n2)
20#define MRB_ARGS_REST() ARGS_REST()
21#define MRB_ARGS_POST(n) ARGS_POST(n)
22#define MRB_ARGS_KEY(n1,n2) ARGS_KEY(n1,n2)
23#define MRB_ARGS_BLOCK() ARGS_BLOCK()
24#define MRB_ARGS_ANY() ARGS_ANY()
25#define MRB_ARGS_NONE() ARGS_NONE()
26#endif /* MRB_ARGS_REQ */
27#endif
28
29#if ! defined( MRUBY_RELEASE_MAJOR )
30#define mrb_float_value( mrb, val ) mrb_float_value( val )
31#endif
32
33#else
34
35/*
36 * fake tecsgen because tecsgen cannot accept actual mruby.h in case of below.
37 * types: long long, long long int
38 * special keyword __attribute__(x), __extension__
39 */
40typedef int mrb_state;
41struct RClass {int dummy;};
42
43typedef int CELLCB;
44
45#endif /* TECSGEN */
46
47#endif /* tecs_mruby_h__ */
Note: See TracBrowser for help on using the repository browser.