- Timestamp:
- Apr 5, 2019, 9:26:53 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asp3_tinet_ecnl_arm/trunk/asp3_dcre/tecsgen/tecs/mruby/tecs_mruby.h
r352 r374 1 1 /* 2 * Copyright (C) 2008-201 7by TOPPERS Project2 * Copyright (C) 2008-2019 by TOPPERS Project 3 3 * 4 4 * 上記著作権者は,以下の(1)~(4)の条件を満たす場合に限り,本ソフトウェ … … 46 46 #include "mruby/irep.h" 47 47 #include "mruby/dump.h" 48 #include "mruby/proc.h" 48 49 49 50 #include "TECSPointer.h" 50 51 #include "TECSStruct.h" 51 52 52 #if ! defined( MRUBY_RELEASE_MAJOR ) || MRUBY_RELEASE_MAJOR == 1 && MRUBY_RELEASE_MINOR < 253 #ifndef MRB_ARGS_REQ54 #define MRB_ARGS_REQ(n) ARGS_REQ(n)55 #define MRB_ARGS_OPT(n) ARGS_OPT(n)56 #define MRB_ARGS_ARG(n1,n2) ARGS_ARG(n1,n2)57 #define MRB_ARGS_REST() ARGS_REST()58 #define MRB_ARGS_POST(n) ARGS_POST(n)59 #define MRB_ARGS_KEY(n1,n2) ARGS_KEY(n1,n2)60 #define MRB_ARGS_BLOCK() ARGS_BLOCK()61 #define MRB_ARGS_ANY() ARGS_ANY()62 #define MRB_ARGS_NONE() ARGS_NONE()63 #endif /* MRB_ARGS_REQ */64 #endif65 53 66 #if ! defined( MRUBY_RELEASE_MAJOR ) 67 #define mrb_float_value( mrb, val ) mrb_float_value( val ) 68 #endif 69 70 #else 54 #else /* TECSGEN */ 71 55 72 56 /* 73 * fake tecsgen because tecsgen cannot accept actual mruby.h in case of below.57 * fake definition because tecsgen cannot accept actual mruby.h in case of below. 74 58 * types: long long, long long int 75 59 * special keyword __attribute__(x), __extension__ … … 78 62 typedef int mrb_irep; 79 63 typedef int mrb_context; 80 struct RClass { int dummy;};81 struct RProc { int dummy;};64 struct RClass {uint32_t gcnext;}; // actual definition: struct RBasic *gcnext 65 struct RProc {uint32_t gcnext;}; // actual definition: struct RBasic *gcnext 82 66 83 67 typedef int CELLCB; 68 69 #define GET_SET_BOOL( Type, type ) 70 #define GET_SET_CHAR( Type, type ) 71 #define GET_SET_INT( Type, type ) 72 #define GET_SET_FLOAT( Type, type ) 73 #define POINTER_CLASS( Type, type ) 74 #define CHECK_AND_GET_POINTER( Type, type ) 84 75 85 76 #endif /* TECSGEN */
Note:
See TracChangeset
for help on using the changeset viewer.