mbed I/F binding for mruby
Dependents: mruby_mbed_web mirb_mbed
mbed-mruby
How to use
Class
mrbgems/mruby-toplevel-ext/gem_init.c@0:158c61bb030f, 2015-03-25 (annotated)
- Committer:
- mzta
- Date:
- Wed Mar 25 17:36:16 2015 +0000
- Revision:
- 0:158c61bb030f
mirb_mbed initial commit;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mzta | 0:158c61bb030f | 1 | /* |
mzta | 0:158c61bb030f | 2 | * This file is loading the irep |
mzta | 0:158c61bb030f | 3 | * Ruby GEM code. |
mzta | 0:158c61bb030f | 4 | * |
mzta | 0:158c61bb030f | 5 | * IMPORTANT: |
mzta | 0:158c61bb030f | 6 | * This file was generated! |
mzta | 0:158c61bb030f | 7 | * All manual changes will get lost. |
mzta | 0:158c61bb030f | 8 | */ |
mzta | 0:158c61bb030f | 9 | #include <stdlib.h> |
mzta | 0:158c61bb030f | 10 | #include "mruby.h" |
mzta | 0:158c61bb030f | 11 | #include "mruby/irep.h" |
mzta | 0:158c61bb030f | 12 | #include <stdint.h> |
mzta | 0:158c61bb030f | 13 | const uint8_t |
mzta | 0:158c61bb030f | 14 | #if defined __GNUC__ |
mzta | 0:158c61bb030f | 15 | __attribute__((aligned(4))) |
mzta | 0:158c61bb030f | 16 | #elif defined _MSC_VER |
mzta | 0:158c61bb030f | 17 | __declspec(align(4)) |
mzta | 0:158c61bb030f | 18 | #endif |
mzta | 0:158c61bb030f | 19 | gem_mrblib_irep_mruby_toplevel_ext[] = { |
mzta | 0:158c61bb030f | 20 | 0x45,0x54,0x49,0x52,0x30,0x30,0x30,0x33,0x72,0x41,0x00,0x00,0x01,0xa2,0x4d,0x41, |
mzta | 0:158c61bb030f | 21 | 0x54,0x5a,0x30,0x30,0x30,0x30,0x49,0x52,0x45,0x50,0x00,0x00,0x01,0x46,0x30,0x30, |
mzta | 0:158c61bb030f | 22 | 0x30,0x30,0x00,0x00,0x00,0x8b,0x00,0x01,0x00,0x02,0x00,0x04,0x00,0x00,0x00,0x12, |
mzta | 0:158c61bb030f | 23 | 0x06,0x00,0x80,0x00,0x47,0x40,0x80,0x00,0xc0,0x00,0x00,0x01,0x46,0x00,0x80,0x00, |
mzta | 0:158c61bb030f | 24 | 0x06,0x00,0x80,0x00,0x47,0x40,0x80,0x00,0xc0,0x02,0x00,0x01,0x46,0x40,0x80,0x00, |
mzta | 0:158c61bb030f | 25 | 0x06,0x00,0x80,0x00,0x47,0x40,0x80,0x00,0xc0,0x04,0x00,0x01,0x46,0x80,0x80,0x00, |
mzta | 0:158c61bb030f | 26 | 0x06,0x00,0x80,0x00,0x47,0x40,0x80,0x00,0xc0,0x06,0x00,0x01,0x46,0xc0,0x80,0x00, |
mzta | 0:158c61bb030f | 27 | 0x84,0x01,0x80,0x00,0x4a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04, |
mzta | 0:158c61bb030f | 28 | 0x00,0x07,0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x00,0x00,0x07,0x70,0x72,0x69,0x76, |
mzta | 0:158c61bb030f | 29 | 0x61,0x74,0x65,0x00,0x00,0x09,0x70,0x72,0x6f,0x74,0x65,0x63,0x74,0x65,0x64,0x00, |
mzta | 0:158c61bb030f | 30 | 0x00,0x06,0x70,0x75,0x62,0x6c,0x69,0x63,0x00,0x00,0x00,0x00,0x4c,0x00,0x03,0x00, |
mzta | 0:158c61bb030f | 31 | 0x06,0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x26,0x00,0x08,0x00,0x06,0x00,0x80,0x01, |
mzta | 0:158c61bb030f | 32 | 0x20,0x00,0x80,0x01,0x37,0x00,0x01,0x02,0x01,0x40,0x80,0x02,0x38,0x40,0x01,0x02, |
mzta | 0:158c61bb030f | 33 | 0xa0,0x7f,0x80,0x01,0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02, |
mzta | 0:158c61bb030f | 34 | 0x00,0x05,0x63,0x6c,0x61,0x73,0x73,0x00,0x00,0x07,0x69,0x6e,0x63,0x6c,0x75,0x64, |
mzta | 0:158c61bb030f | 35 | 0x65,0x00,0x00,0x00,0x00,0x26,0x00,0x03,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x03, |
mzta | 0:158c61bb030f | 36 | 0x26,0x00,0x08,0x00,0x05,0x00,0x80,0x01,0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00, |
mzta | 0:158c61bb030f | 37 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x26,0x00,0x03,0x00,0x04,0x00,0x00,0x00,0x00, |
mzta | 0:158c61bb030f | 38 | 0x00,0x03,0x00,0x00,0x26,0x00,0x08,0x00,0x05,0x00,0x80,0x01,0x29,0x00,0x80,0x01, |
mzta | 0:158c61bb030f | 39 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x26,0x00,0x03,0x00,0x04, |
mzta | 0:158c61bb030f | 40 | 0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x26,0x00,0x08,0x00,0x05,0x00,0x80,0x01, |
mzta | 0:158c61bb030f | 41 | 0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4c,0x56,0x41,0x52, |
mzta | 0:158c61bb030f | 42 | 0x00,0x00,0x00,0x3e,0x00,0x00,0x00,0x02,0x00,0x07,0x6d,0x6f,0x64,0x75,0x6c,0x65, |
mzta | 0:158c61bb030f | 43 | 0x73,0x00,0x07,0x6d,0x65,0x74,0x68,0x6f,0x64,0x73,0x00,0x00,0x00,0x01,0xff,0xff, |
mzta | 0:158c61bb030f | 44 | 0x00,0x00,0x00,0x01,0x00,0x01,0xff,0xff,0x00,0x00,0x00,0x01,0x00,0x01,0xff,0xff, |
mzta | 0:158c61bb030f | 45 | 0x00,0x00,0x00,0x01,0x00,0x01,0xff,0xff,0x00,0x00,0x45,0x4e,0x44,0x00,0x00,0x00, |
mzta | 0:158c61bb030f | 46 | 0x00,0x08, |
mzta | 0:158c61bb030f | 47 | }; |
mzta | 0:158c61bb030f | 48 | void mrb_mruby_toplevel_ext_gem_init(mrb_state *mrb); |
mzta | 0:158c61bb030f | 49 | void mrb_mruby_toplevel_ext_gem_final(mrb_state *mrb); |
mzta | 0:158c61bb030f | 50 | |
mzta | 0:158c61bb030f | 51 | void GENERATED_TMP_mrb_mruby_toplevel_ext_gem_init(mrb_state *mrb) { |
mzta | 0:158c61bb030f | 52 | int ai = mrb_gc_arena_save(mrb); |
mzta | 0:158c61bb030f | 53 | mrb_load_irep(mrb, gem_mrblib_irep_mruby_toplevel_ext); |
mzta | 0:158c61bb030f | 54 | if (mrb->exc) { |
mzta | 0:158c61bb030f | 55 | mrb_print_error(mrb); |
mzta | 0:158c61bb030f | 56 | exit(EXIT_FAILURE); |
mzta | 0:158c61bb030f | 57 | } |
mzta | 0:158c61bb030f | 58 | mrb_gc_arena_restore(mrb, ai); |
mzta | 0:158c61bb030f | 59 | } |
mzta | 0:158c61bb030f | 60 | |
mzta | 0:158c61bb030f | 61 | void GENERATED_TMP_mrb_mruby_toplevel_ext_gem_final(mrb_state *mrb) { |
mzta | 0:158c61bb030f | 62 | } |
mzta | 0:158c61bb030f | 63 |