summaryrefslogtreecommitdiffhomepage
path: root/src/vm.c
AgeCommit message (Collapse)Author
2012-05-25adjust stack position before exiting mrb_run(); close #193Yukihiro Matsumoto
2012-05-24made mrb_get_args() better (optinal args, type checks); close #173 #176Yukihiro Matsumoto
2012-05-23cast style consistencyYukihiro Matsumoto
2012-05-21wrong stack position in rescue clauseYukihiro Matsumoto
2012-05-20More C++ compilability work: mrb_obj_alloc void* conversionsMitchell Blank Jr
One of the biggest set of changes needed to make C++ compile, is that you can't autoconvert "void*" to a different pointer type without a cast (you can of course, convert pointers *to* "void*"!) For the first part, convert the users of "mrb_obj_alloc". Since it has to return something, make it RBasic* (that's what mrb_obj_alloc() is operating on anyway). This way, even in C you'll get a warning if you don't cast it. For places where there are a lot of similar calls to mrb_obj_alloc(), this can be easily hidden through a macro. I did this in string.c: #define mrb_obj_alloc_string(mrb) ((struct RString *) mrb_obj_alloc((mrb), MRB_TT_STRING, (mrb)->string_class)) I also updated the mrb_object() macro to also return a RBasic* -- my previous commit changed that from "void*" -> "RObject*", but I figure it should be consistent with mrb_obj_alloc()
2012-05-16Avoid "may be used uninitialized in this function" warning.Masaki Muranaka
2012-05-14OP_STOP to return exception object on errorYukihiro Matsumoto
2012-05-12Merge pull request #117 from k-tsj/toplevel-returnYukihiro "Matz" Matsumoto
Raise LocalJumpError when returning from top-level
2012-05-12Raise LocalJumpError when returning from top-levelKazuki Tsujimoto
2012-05-12Move stack values to heap whenever ci is poppedKazuki Tsujimoto
2012-05-10mrb_run to return last evaluated valueYukihiro Matsumoto
2012-05-09use DIRECT_THREADED only on GCCYukihiro Matsumoto
2012-05-09partial VC supportYukihiro Matsumoto
2012-05-06Time class available; based on code from @beoran; sorry for jumbo patchYukihiro Matsumoto
2012-05-04Merge pull request #96 from k-tsj/fix-return-segvYukihiro "Matz" Matsumoto
Fix SEGV when returning from terminated method
2012-05-04Fix SEGV when returning from terminated methodKazuki Tsujimoto
2012-05-04LocalJumpError message contained garbage charactersKazuki Tsujimoto
2012-05-01Fixed issue with reference to i in union, should have been symCarson McDonald
2012-04-30rm whitespaceroco
2012-04-26Remove a bunch of unused variables.Patrick Hogan
Removed or commented out to stop compiler whining about them. Signed-off-by: Patrick Hogan <[email protected]>
2012-04-24move header files {irep,dump,cdump,ritehash}.h to /include/mrubyYukihiro Matsumoto
2012-04-24mv variable.h to mruby/variable.hYukihiro Matsumoto
2012-04-23add file headermimaki
2012-04-20add mruby sourcesmimaki