polyfox/moon

View on GitHub
modules/system/src/mrb_system.cxx

Summary

Maintainability
Test Coverage
#include <stdbool.h>
#include <mruby.h>
#include <mruby/class.h>
#include <mruby/data.h>
#include "moon/mrb/clock.hxx"
#include "moon/mrb/context.hxx"
#include "moon/mrb/rect.hxx"
#include "moon/mrb/matrix4.hxx"
#include "moon/mrb/vector1.hxx"
#include "moon/mrb/vector2.hxx"
#include "moon/mrb/vector3.hxx"
#include "moon/mrb/vector4.hxx"

extern "C" void
mrb_mruby_moon_system_gem_init(mrb_state* mrb)
{
  struct RClass *moon_module = mrb_define_module(mrb, "Moon");
  mmrb_clock_init(mrb);
  mmrb_rect_init(mrb);
  mmrb_vector1_init(mrb);
  mmrb_vector2_init(mrb);
  mmrb_vector3_init(mrb);
  mmrb_vector4_init(mrb);
  mmrb_matrix4_init(mrb);
  mmrb_context_init(mrb);
}

extern "C" void
mrb_mruby_moon_system_gem_final(mrb_state* mrb)
{
  //
}