| Age | Commit message (Collapse) | Author |
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
reviews in the future.
|
|
These code will be removed by optimizer if the target runs on 32bit or above.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
it cannot be more than UINT16_MAX because of the mrbc binary format.
|
|
|
|
Cleanup includes
|
|
seems SIZE_MAX is defined in stdint.h. And it possibly (depends on the version of VC++) conflicts with SIZE_MAX in limits.h. This patch is no need if I did not support VC++.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
environments).
This is a first step. It will be reduced stdlib.h in each files later.
|
|
|
|
length. It avoids overflow in the extreme situations.
|
|
This assumption may break on some targets which have 16bit memory space.
|
|
|
|
|
|
|
|
|
|
causes bugs on modifications in the future.
|
|
|
|
|
|
|
|
|
|
|