take_cheeze
f6b5a82972
Use class array instead of variadic.
2015-07-15 14:47:15 +09:00
take_cheeze
cdd72d9c37
Implement mrb_protect, mrb_ensure, mrb_rescue, mrb_rescue_exceptions.
...
(`mrb_rescue_exceptions` is mruby implementation of `rb_rescue2`.)
Closes #2844 , closes #2837 .
2015-07-15 14:46:56 +09:00
take_cheeze
2e4bc2de88
Refactor Build#compile_as_cxx.
2015-07-15 14:46:56 +09:00
Corey Powell
dbbf2e2623
Remove non-applicable "hack" comment
2015-07-14 14:12:23 -05:00
Corey Powell
eb172c28d7
Applied gc patch to fix ORIGIN ICLASS method table leak
...
Based on the gc patch by ko1
https://github.com/ruby/ruby/commit/5922c954614e5947a548780bb3b894626affe6dd
2015-07-14 09:44:04 -05:00
Corey Powell
f0e920baf0
Renamed parameters in include_module_at
2015-07-14 08:55:53 -05:00
Yukihiro "Matz" Matsumoto
69a2c5cc73
Merge pull request #2884 from jbreeden/doc_bang_modifier
...
Doc bang modifier
2015-07-14 15:32:47 +09:00
jbreeden
e92da7b76c
Fix typo
2015-07-13 23:26:29 -07:00
jbreeden
510e53d89f
Add ! documentation to mruby.h.md
2015-07-13 23:21:19 -07:00
Yukihiro "Matz" Matsumoto
53a81da0fa
mrb_get_args: improve function description about !
2015-07-14 13:35:06 +09:00
Yukihiro "Matz" Matsumoto
4e7050fe0c
mrb_get_args: allow d!
2015-07-14 13:34:21 +09:00
Yukihiro "Matz" Matsumoto
a075498613
mrb_get_args: allow A,H,s,z,a,d specifiers to take ! to accept nil.
...
S,A,H gives nil, s,z,a,d gives NULL for nil argument. ref 02474da
2015-07-14 13:22:42 +09:00
Blaž Hrastnik
78462c9181
Clean up tests
2015-07-13 23:46:41 +02:00
Blaž Hrastnik
8c4da7accd
assert() cannot be nested
2015-07-13 23:38:37 +02:00
Blaž Hrastnik
8c13e2b7c6
Set origin when doing kind_of? comparisons
2015-07-13 23:35:30 +02:00
Blaž Hrastnik
b0fb9ccfd8
Enable test_prepend_module_ancestors because it seems to pass.
2015-07-13 23:25:01 +02:00
Corey Powell
11cb41770d
Space out test_prepend_super_in_alias assert
...
Also tried to fix it, however the problem lies with how aliased methods
are done and their internal structure.
mruby simply aliases methods by grabbing the RProc and giving it a new name,
super then determines the original method to call by using the name
so a method called m, aliased as m2, will call the m2 super method instead of m
2015-07-13 10:45:57 -05:00
Corey Powell
81a2b3431c
included_modules, origin fix
...
Prepended modules would include their origin ICLASS
2015-07-13 09:49:51 -05:00
Corey Powell
199a808e36
Bugfix, included_modules would include classes
2015-07-13 09:49:18 -05:00
Corey Powell
1f678a4ace
Removed comment beside method_removed
...
Not sure if this apart of the ISO standard, so make sure its not misrepresented
2015-07-13 09:40:40 -05:00
Corey Powell
668153092f
Added Module#method_removed hook
2015-07-13 09:38:24 -05:00
Blaž Hrastnik
11dad71578
Enable visibility prepend tests again
2015-07-13 14:04:43 +02:00
Blaž Hrastnik
a725cb9093
Include prepended methods in the instance_methods list.
2015-07-13 14:04:43 +02:00
Corey Powell
47264bf289
Ported all MRI prepend tests
...
And of course, some of them fail miserably
2015-07-13 14:04:42 +02:00
Corey Powell
319553f0ef
Removed some debug prints from the test
2015-07-13 14:04:42 +02:00
Corey Powell
99aff17075
Ported a bit more of the MRI Module#prepend tests over
...
Currently kind_of fails miserably, still looking for the reason
2015-07-13 14:04:42 +02:00
Corey Powell
d4b009b394
Fixed Modules not being fully initialized before #initialize was called
2015-07-13 14:04:42 +02:00
Corey Powell
40f48034d5
Added changed check to the mrb_include_module
2015-07-13 14:04:42 +02:00
Corey Powell
ce66727177
Remove some remnant debug code
2015-07-13 14:04:42 +02:00
Corey Powell
005cacf18b
Additional patches to make this work
2015-07-13 14:04:42 +02:00
Blaž Hrastnik
97529c2a9a
Comment in a refactor to match MRI, but that fails 320 tests.
2015-07-13 14:04:42 +02:00
Blaž Hrastnik
2e617e37e1
origin must be initialized
2015-07-13 14:04:42 +02:00
Blaž Hrastnik
ad9f32c5a8
Expose insert position, which should be at origin for include and klass for
...
prepend.
2015-07-13 14:04:42 +02:00
Blaž Hrastnik
d046814d8b
Rename classes because of conflicts
2015-07-13 14:04:42 +02:00
Blaž Hrastnik
f962890a92
Implement Module#prepend.
2015-07-13 14:04:42 +02:00
Yukihiro "Matz" Matsumoto
d0e67aada7
use "S!" specifier of mrb_get_args() to improve #2882 fix.
2015-07-13 11:18:44 +09:00
Yukihiro "Matz" Matsumoto
02474daa14
allow '!' after 'S' specifier of mrb_get_args() that allow nil.
...
thus "S!" means String|nil type. you have to check nil before
dereferencing the value. this is added to address #2882 while
keeping code simplicity. besides that current #2882 fix lose
polymorphism provided by mrb_get_args().
2015-07-13 11:14:50 +09:00
Yukihiro "Matz" Matsumoto
9c311ddc93
refactor mrb_bob_missing to share raising NoMethodError code; fix #2878
...
Note: arguments of mrb_no_method_error() has changed. You need to replace
3rd and 4th argument (say n, argv) to mrb_ary_new_from_values(mrb, n, argv).
2015-07-13 11:07:59 +09:00
Yukihiro "Matz" Matsumoto
4dac03cb2d
Merge pull request #2883 from jbreeden/array_join_nil
...
Patching array join
2015-07-12 22:42:18 +09:00
jbreeden
dd558a108d
Removing unndeeded to_s
2015-07-11 21:15:33 -07:00
jbreeden
bdbd696c48
Patching array join
2015-07-11 21:03:04 -07:00
Yukihiro "Matz" Matsumoto
39dd182244
Merge pull request #2880 from mattn/llround
...
implement llround. some platform (ex: mingw32) doesn't have llround.
2015-07-09 14:57:29 +09:00
Yasuhiro Matsumoto
1167fd1ae4
use round for llround. some platform (ex: mingw32) doesn't have llround.
2015-07-09 11:02:34 +09:00
Ralph Desir
82380780db
Update hash.h.md
2015-07-08 05:35:37 -04:00
Mav7
2523ed473a
Added new markdowns.
2015-07-08 04:50:01 -04:00
Yukihiro "Matz" Matsumoto
40252169fc
method_missing definition may be undefined; fix #2878
2015-07-07 10:32:54 +09:00
Yukihiro "Matz" Matsumoto
5cfc0d0dc0
Merge pull request #2877 from cremno/fix-dangling-ptr
...
Coverity: fix dangling pointer
2015-07-07 07:40:38 +09:00
Yukihiro "Matz" Matsumoto
5daabc9407
Merge pull request #2876 from joans321/master
...
fix androideabi cross-compile error : undefined reference to 'frexpl'
2015-07-07 00:36:51 +09:00
Yukihiro "Matz" Matsumoto
f1c6d6c866
Merge pull request #2875 from davydovanton/doc-comment-typo
...
Fix typo in comment in String#mrb_cstr_to_inum
2015-07-07 00:34:03 +09:00
xuejianqing
0b50b4a500
fix androideabi cross-compile error : undefined reference to 'frexpl'
2015-07-06 12:51:57 +08:00