This is a port of the mruby/c tutorial Chapter 03 to the mbed environment.

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers static.h Source File

static.h

Go to the documentation of this file.
00001 /*! @file
00002   @brief
00003   Declare static data.
00004 
00005   <pre>
00006   Copyright (C) 2015-2016 Kyushu Institute of Technology.
00007   Copyright (C) 2015-2016 Shimane IT Open-Innovation Center.
00008 
00009   This file is distributed under BSD 3-Clause License.
00010   </pre>
00011 */
00012 
00013 #ifndef MRBC_SRC_STATIC_H_
00014 #define MRBC_SRC_STATIC_H_
00015 
00016 #include "vm.h"
00017 #include "global.h"
00018 #include "value.h "
00019 
00020 #ifdef __cplusplus
00021 extern "C" {
00022 #endif
00023 
00024 
00025 /* VM */
00026 extern mrb_vm mrbc_vm[];
00027 
00028 /* Object */
00029 //extern mrb_object *mrbc_pool_object;
00030 
00031 
00032 /* Class Tree */
00033 extern mrb_class *mrbc_class_object;
00034 
00035 extern mrb_class *mrbc_class_false;
00036 extern mrb_class *mrbc_class_true;
00037 extern mrb_class *mrbc_class_nil;
00038 extern mrb_class *mrbc_class_array;
00039 extern mrb_class *mrbc_class_fixnum;
00040 extern mrb_class *mrbc_class_float;
00041 extern mrb_class *mrbc_class_string;
00042 extern mrb_class *mrbc_class_symbol;
00043 extern mrb_class *mrbc_class_range;
00044 extern mrb_class *mrbc_class_hash;
00045 
00046 
00047 extern mrb_constobject mrbc_const[];
00048 /* Global Objects */
00049 extern mrb_globalobject mrbc_global[];
00050 
00051 void init_static(void);
00052 
00053 
00054 #ifdef __cplusplus
00055 }
00056 #endif
00057 #endif
00058