mbed I/F binding for mruby
Dependents: mruby_mbed_web mirb_mbed
mbed-mruby
How to use
Class
mrbgems/mruby-numeric-ext/gem_init.c@1:8ccd1d494a4b, 2015-04-13 (annotated)
- Committer:
- mzta
- Date:
- Mon Apr 13 05:20:15 2015 +0000
- Revision:
- 1:8ccd1d494a4b
- Parent:
- 0:158c61bb030f
- code refactoring.; - add SPI, SPISlave, I2C class to mruby-mbed (Incomplete).
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_numeric_ext[] = { |
mzta | 0:158c61bb030f | 20 | 0x45,0x54,0x49,0x52,0x30,0x30,0x30,0x33,0x63,0x2e,0x00,0x00,0x00,0xe9,0x4d,0x41, |
mzta | 0:158c61bb030f | 21 | 0x54,0x5a,0x30,0x30,0x30,0x30,0x49,0x52,0x45,0x50,0x00,0x00,0x00,0xb0,0x30,0x30, |
mzta | 0:158c61bb030f | 22 | 0x30,0x30,0x00,0x00,0x00,0x35,0x00,0x01,0x00,0x02,0x00,0x01,0x00,0x00,0x00,0x04, |
mzta | 0:158c61bb030f | 23 | 0x05,0x00,0x80,0x00,0x44,0x00,0x80,0x00,0x45,0x00,0x80,0x00,0x4a,0x00,0x00,0x00, |
mzta | 0:158c61bb030f | 24 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x08,0x49,0x6e,0x74,0x65,0x67,0x72, |
mzta | 0:158c61bb030f | 25 | 0x61,0x6c,0x00,0x00,0x00,0x00,0x34,0x00,0x01,0x00,0x03,0x00,0x01,0x00,0x00,0x00, |
mzta | 0:158c61bb030f | 26 | 0x05,0x00,0x00,0x00,0x48,0x00,0x80,0x00,0xc0,0x00,0x00,0x01,0x46,0x00,0x80,0x00, |
mzta | 0:158c61bb030f | 27 | 0x04,0x00,0x80,0x00,0x29,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, |
mzta | 0:158c61bb030f | 28 | 0x00,0x03,0x64,0x69,0x76,0x00,0x00,0x00,0x00,0x44,0x00,0x03,0x00,0x06,0x00,0x00, |
mzta | 0:158c61bb030f | 29 | 0x00,0x00,0x00,0x07,0x26,0x00,0x00,0x02,0x06,0x00,0x80,0x01,0x01,0x40,0x00,0x02, |
mzta | 0:158c61bb030f | 30 | 0xa0,0x00,0x80,0x01,0x83,0xff,0x3f,0x02,0xa0,0x40,0x80,0x01,0x29,0x00,0x80,0x01, |
mzta | 0:158c61bb030f | 31 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x06,0x64,0x69,0x76,0x6d,0x6f,0x64, |
mzta | 0:158c61bb030f | 32 | 0x00,0x00,0x02,0x5b,0x5d,0x00,0x4c,0x56,0x41,0x52,0x00,0x00,0x00,0x1b,0x00,0x00, |
mzta | 0:158c61bb030f | 33 | 0x00,0x01,0x00,0x05,0x6f,0x74,0x68,0x65,0x72,0x00,0x00,0x00,0x01,0xff,0xff,0x00, |
mzta | 0:158c61bb030f | 34 | 0x00,0x45,0x4e,0x44,0x00,0x00,0x00,0x00,0x08, |
mzta | 0:158c61bb030f | 35 | }; |
mzta | 0:158c61bb030f | 36 | void mrb_mruby_numeric_ext_gem_init(mrb_state *mrb); |
mzta | 0:158c61bb030f | 37 | void mrb_mruby_numeric_ext_gem_final(mrb_state *mrb); |
mzta | 0:158c61bb030f | 38 | |
mzta | 0:158c61bb030f | 39 | void GENERATED_TMP_mrb_mruby_numeric_ext_gem_init(mrb_state *mrb) { |
mzta | 0:158c61bb030f | 40 | int ai = mrb_gc_arena_save(mrb); |
mzta | 0:158c61bb030f | 41 | mrb_mruby_numeric_ext_gem_init(mrb); |
mzta | 0:158c61bb030f | 42 | mrb_load_irep(mrb, gem_mrblib_irep_mruby_numeric_ext); |
mzta | 0:158c61bb030f | 43 | if (mrb->exc) { |
mzta | 0:158c61bb030f | 44 | mrb_print_error(mrb); |
mzta | 0:158c61bb030f | 45 | exit(EXIT_FAILURE); |
mzta | 0:158c61bb030f | 46 | } |
mzta | 0:158c61bb030f | 47 | mrb_gc_arena_restore(mrb, ai); |
mzta | 0:158c61bb030f | 48 | } |
mzta | 0:158c61bb030f | 49 | |
mzta | 0:158c61bb030f | 50 | void GENERATED_TMP_mrb_mruby_numeric_ext_gem_final(mrb_state *mrb) { |
mzta | 0:158c61bb030f | 51 | mrb_mruby_numeric_ext_gem_final(mrb); |
mzta | 0:158c61bb030f | 52 | } |
mzta | 0:158c61bb030f | 53 |