Update for latest mruby, emscripten
This commit is contained in:
parent
bd75100d24
commit
0dbe2008af
9 changed files with 2728 additions and 3153 deletions
|
@ -265,6 +265,11 @@ void __attribute__ ((optnone)) main_update_loop() {
|
|||
#ifdef __EMSCRIPTEN__
|
||||
if (static_mrb->exc) {
|
||||
printf("Execution Errored\n");
|
||||
mrb_value s = mrb_funcall(static_mrb, mrb_obj_value(static_mrb->exc), "inspect", 0);
|
||||
if (mrb_string_p(s)) {
|
||||
printf("%s", mrb_str_to_cstr(static_mrb, s));
|
||||
printf("\n");
|
||||
}
|
||||
mrb_close(static_scriptmrb);
|
||||
shState->texPool().disable();
|
||||
mrb_close(static_mrb);
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include "binding-util.h"
|
||||
#include "binding-types.h"
|
||||
#include "serializable-binding.h"
|
||||
#include <iostream>
|
||||
|
||||
#define ATTR_RW(Type, Attr, arg_type, mrb_val, arg_t_s) \
|
||||
MRB_METHOD(Type##Get##Attr) \
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -38,4 +38,5 @@ bool SDL_rw_file_helper::write(char * data) {
|
|||
}
|
||||
SDL_RWclose(rw);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
BIN
binding-mruby/rpg.mrb
Normal file
BIN
binding-mruby/rpg.mrb
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue