summaryrefslogtreecommitdiffhomepage
path: root/include/mruby.h
AgeCommit message (Collapse)Author
2014-05-03new macro mrb_int(mrb,x) to retrieve mrb_int from mrb_value with conversion ↵Yukihiro "Matz" Matsumoto
if needed
2014-04-25better integer size assertion suggested by usakYukihiro "Matz" Matsumoto
2014-04-25eliminate plain int except for a few cases like arena_indexYukihiro "Matz" Matsumoto
2014-04-18Sort out the variables which belongs to 'mrb_callinfo' to improve 'cipush' ↵crimsonwoods
performance.
2014-04-16resolve conflictYukihiro "Matz" Matsumoto
2014-04-11Qualify argv argument of API `const`.Takeshi Watanabe
2014-04-10Qualify mrb_yield_*'s argv `const`.take_cheeze
2014-04-09Add MRB_TT_HAS_BASIC_P macro to check whether a typetag has MRB_OBJECT_HEADER.take_cheeze
2014-03-26add new function mrb_toplevel_run to prevent running through C function ↵Yukihiro "Matz" Matsumoto
boudaries on exceptions; close #1942
2014-03-23Use MRB_ARGS_REST() instead of ARGS_REST()cubicdaiya
According to include/mruby.h, /* compatibility macros; will be removed */ #define ARGS_REST() MRB_ARGS_REST()
2014-03-21make Fiber#transfer compatible with CRubytake_cheeze
2014-03-20use FiberError in fiber exception raisetake_cheeze
2014-03-19Merge pull request #1890 from take-cheeze/fiber_resumingYukihiro "Matz" Matsumoto
Revert MRB_FIBER_RESUMED as MRB_FIBER_RESUMING.
2014-03-19rename mrb_yield_internal to mrb_yield_with_class since it's no longer internalYukihiro "Matz" Matsumoto
2014-03-19export mrb_yield_internal.Tomoyuki Sahara
2014-03-19revert MRB_FIBER_RESUMED as MRB_FIBER_RESUMING to fix recurive resumetake_cheeze
2014-03-19string functions arguments changed from mrb_int to size_t that would take ↵Yukihiro "Matz" Matsumoto
strlen()
2014-03-19change mrb_int to size_t that would take strlen()Yukihiro "Matz" Matsumoto
2014-03-16unify indent stylecubicdaiya
2014-03-15Merge branch 'master' of github.com:mruby/mrubyYukihiro "Matz" Matsumoto
2014-03-15string length type to be mrb_intYukihiro "Matz" Matsumoto
2014-03-15symbol length type to be mrb_intYukihiro "Matz" Matsumoto
2014-03-15Add Fiber's double resume test and fix it.take_cheeze
2014-03-13Merge pull request #1851 from tmash06/add_include_limit_hYukihiro "Matz" Matsumoto
add including limits.h.
2014-03-13add including limits.h.tmash06
Because Android's libc(bionic) defines SIZE_MAX at limits.h.
2014-03-12add mrb_strlen_lit which makes _lit macros safercremno
strlen(3) + string literal is usually optimized but strlen(3) doesn't check if its argument is really a string literal. This is important for mruby's _static functions to which some _lit macros are expanded (string literals have static storage). See comment for some additional info. remove unnecessary parentheses
2014-03-01support c++ exceptiontake_cheeze
2014-03-01use C style comments instead of C++ style commentscubicdaiya
According to CONTRIBUTING.md, Don't use C++ style comments /* This is the prefered comment style */ Use C++ style comments only for temporary comment e.g. commenting out some code lines.
2014-03-01mrb_fiber_yield() is available now; you have to link mruby-fiber mrbgem to ↵Yukihiro "Matz" Matsumoto
use the function; there's no function available to create new fiber from C (countapart of Lua's lua_newthread), but that's because you cannot create a new fiber from C due to mruby C API design limitation. define your method to create fibers in Ruby; close #1269
2014-02-12include mruby/version.h in mruby.hTomoyuki Sahara
2014-02-09Store raw stack address in callinfo instead of offset from stbasMiura Hideki
2014-02-08forget to add function prototypesYukihiro "Matz" Matsumoto
2014-02-06introduce mrb_str_new_lit() to create strings from C string litralsYukihiro "Matz" Matsumoto
2014-01-31Merge pull request #1669 from cremno/copyright-2014Yukihiro "Matz" Matsumoto
update copyright year
2014-01-31Merge pull request #1668 from cremno/etc-c-cleanupYukihiro "Matz" Matsumoto
etc.c: small cleanup
2014-01-30mruby.h: remove mrb_str_format declarationcremno
The function mrb_str_format is only defined when the mrbgem mruby-sprintf was activated. That might not always be the case (by default it currently is). mrb_str_format still has external linkage, so from now on mrbgem authors have to declare it in their source code if they want or need to call it.
2014-01-30Happy new year! (update copyright year)cremno
Let's not wait until May this time (f0a9b95af3d542ac1db7fcb4a3d77990a284c185)!
2014-01-30etc.c: small cleanup (delete unused functions)cremno
mrb_data_object_alloc: unnecessary cast mrb_lastline_get: mruby doesn't support $_, weird and unused code mrb_exec_recursive: see 4e46abb86914b36e70b5f3ad0826d0b648e9b4ef mrb_block_proc: unused, doesn't really do anything (or needs to be rewritten) mrb_obj_to_sym: actually use id (and MSVC detected unreachable code)
2014-01-23add callback invocation from OP_DEBUGYukihiro "Matz" Matsumoto
2013-12-25rename mrb_intern_litral -> mrb_intern_staticYukihiro "Matz" Matsumoto
2013-12-24zero copy C literal strings in symbol tableYukihiro "Matz" Matsumoto
2013-12-23Remove 'mrb_state' field from 'kh_xxx_t' structure.crimsonwoods
'kh_xxx_t' requires 'mrb_state' to allocate, free, and compute hash value. But 'mrb_state' should not be held by 'kh_xxx_t' and 'mrb_state' should be supplied from outside.
2013-12-01add mrb_intern_lit for creating symbol from string literaltake_cheeze
2013-11-29rename mrb_intern2() to mrb_intern(); huge API incompatibility; close #1513Yukihiro "Matz" Matsumoto
2013-11-22Make mrb->arena variable sized. Use MRB_GC_FIXED_ARENA for old behavior.Yukihiro "Matz" Matsumoto
You will not see "arena overflow" error anymore, but I encourage gem authors to check your gems with MRB_GC_FIXED_ARENA to avoid memory broat.
2013-11-21declare struct mrb_irep.Tomoyuki Sahara
2013-11-07wrong return value from read_lineno_record()Yukihiro "Matz" Matsumoto
2013-11-07modified to use irep->reps to reference child ireps. preparation forYukihiro "Matz" Matsumoto
removing irep array from mrb_state. note that instructions OP_LAMBDA, OP_EXEC and OP_EPUSH are incompatible, and dumped mrb format has changed.
2013-11-03refactor mrb_context_run()fleuria
2013-11-03introduce mrb_context_run()fleuria
currently there are two scnenario to call mrb_run(), the first is calling a proc, in this case mrb should create a new environment, discarding all the variables except args, reciever and block. the second is calling the newly generated irep, like in mirb. in this case, the variables should be kept after mrb_run(). so we introduce mrb_context_run() to handle this seperately.