34 Commits

Author SHA1 Message Date
dearblue 099a4f3969 Entrust "no block given" error to mrb_get_args()
Some error messages will be changed.
2019-09-16 20:29:58 +09:00
KOBAYASHI Shuji 92f00d3e58 Fix missing assertions in mruby-objectspace test 2019-06-02 19:15:20 +09:00
Yukihiro "Matz" Matsumoto cca19532c5 Remove Kernel#class_defined? which is not available in CRuby; #3829 2019-01-03 11:34:35 +09:00
Yukihiro "Matz" Matsumoto 8c9e712784 Keyword argument implemented. 2018-07-30 22:58:01 +09:00
Yukihiro "Matz" Matsumoto 6a9efd6849 Invoke mrb_full_gc() before ObjectSpace.count_objects. 2017-11-19 12:19:46 +09:00
Yukihiro "Matz" Matsumoto 62dae09bf6 Allow mrb_objspace_each_objects() to break iteration; ref #3359 2017-04-20 15:44:56 +09:00
Tomasz Dąbrowski 1af9e363f2 Fixes for compiling mruby as C++ 2016-11-24 09:28:00 +09:00
Yukihiro "Matz" Matsumoto 5c405dea3d include changed from by quotes ("") to by brackets (<>); close #3032 2015-11-27 17:48:23 +09:00
furunkel 3ab2f9371e Clean up GC code 2015-10-19 22:29:43 +02:00
ksss bdbc1f003e Reduce warning for enumeration
22 enumeration values not handled in switch: 'MRB_TT_FALSE',
'MRB_TT_FREE', 'MRB_TT_TRUE'... [-Wswitch]
2014-06-29 09:52:18 +09:00
Yukihiro "Matz" Matsumoto 9a28ae921b ObjectSpace.each_object should filter out internal (i.e. obj->c == NULL) objects; ref #2429 2014-06-28 01:08:23 +09:00
take_cheeze f9076230f2 Fix crash in method call in ObjectSpace.each_object block.
* Filter `MRB_TT_ENV` and `MRB_TT_ICLASS`.
* Set `mrb->string_class` in `mrb_init_exception` instead.
2014-06-28 00:45:47 +09:00
yui-knk 27167f8de0 Replace from include <>, to include "". 2014-05-08 08:46:55 +09:00
yui-knk c2732a160a Add a comment to ObjectSpace.each_object. 2014-05-06 12:41:23 +09:00
take_cheeze c4f14755a7 Always increment total field of os_count_struct in callback.
Check sum of `ObjectSpace.count_objects` values is twice of total objects count.
(Which is CRuby's behavior.)
2014-04-06 18:13:29 +09:00
take_cheeze 0d27f18fe7 Fix ObjectSpace.count_objects document. 2014-04-05 14:48:44 +09:00
take_cheeze 6d75f89ee5 Support :T_FIBER in ObjectSpace.count_objects . 2014-04-03 17:18:46 +09:00
take_cheeze 889a2e0932 Use CRuby compatible key in ObjectSpace.count_objects . 2014-03-27 07:06:44 +09:00
take_cheeze 8ae3c80fc3 Use mrb_int. 2014-03-25 11:08:54 +09:00
take_cheeze e5922aa896 Implement ObjectSpace.each_object . 2014-03-25 08:32:50 +09:00
take_cheeze c73f8d4def move summary of mrbgems in default gembox to its spec 2014-03-17 00:34:24 +09:00
cremno a2cfc9a9af rework mruby-objectspace and gc.[ch]
- functions should have C linkage (for C++ code)
- add prefix to each_object_callback
- use more appropriate variable types / initialization
- ObjectSpace::count_objects has 1 opt. arg.
- prefer mrb_intern_lit to mrb_intern_cstr for str. lit.
- mruby/value.h is included by mruby.h
- adjust coding style
2014-01-31 17:42:05 +01:00
Yukihiro "Matz" Matsumoto 3995e7ff8f rename voidp to cptr 2013-09-21 17:28:47 +09:00
Daniel Bovensiepen aa3ff53f04 Improve test of mruby-objectspace-ext GEM 2013-08-04 22:42:57 +08:00
Tomoyuki Sahara 116f75a8ce "spec.author" is better for single-author gems.
"spec.author=" expects a String represents a single author.
"spec.authors=" expects an Array which is a list of multiple authors.

http://guides.rubygems.org/specification-reference/
2013-07-23 10:09:24 +09:00
Yukihiro "Matz" Matsumoto ac2adf3476 indentation fix 2013-05-18 11:24:09 +09:00
Yukihiro "Matz" Matsumoto a1c6996fea remove unused local variable 2013-05-18 11:22:44 +09:00
Ryan Scott 008aec2bbc Cleanup of mruby_objectspace.c and removed the unneccessary README for mruby_objectspace. 2013-05-18 11:03:54 +10:00
Ryan Scott 391807b73c Changed the counting so that only objects that are alive are added to the object counts. 2013-05-18 10:46:55 +10:00
Ryan Scott e36a0275e1 Minor formatting change. 2013-05-17 08:04:19 +10:00
Ryan Scott 40d63f7740 Changed the each_object callback so that a pointer is passed for the object, instead of the struct. 2013-05-17 08:02:24 +10:00
Ryan Scott da6b61db79 Removed debug output 2013-05-17 07:56:31 +10:00
Ryan Scott f62cc5b1ee Changed the object_count so that it only iterates over the RBasic object, not the full RVALUE known by the GC 2013-05-17 07:41:13 +10:00
Ryan Scott 222918deae First implementation of ObjectSpace moved outside of gc.c 2013-05-17 07:21:33 +10:00