Yukihiro "Matz" Matsumoto
fd8634d26b
Merge pull request #2993 from Mav7/master
...
Updated mruby.h YARD doc.
2015-10-15 23:12:47 +09:00
Ralph Desir(Mav7)
d702b7fdf0
Add more YARD docs for mruby.h for mrb_undef_method and mrb_undef_class_method.
2015-10-14 16:49:10 -04:00
Ralph Desir(Mav7)
a5b416e2ce
Added documentation for mrb_undef_method
2015-10-14 02:50:12 -04:00
Yukihiro "Matz" Matsumoto
af3aecd94f
Merge pull request #2916 from felixjones/master
...
mrb_get_mid and mrb_get_argc
2015-10-12 21:04:19 +09:00
Ralph Desir(Mav7)
6276227e70
Wrote YARD docs for mrb_define_module, mrb_include_module, mrb_prepend_module, mrb_define_class_method, mrb_define_module_function, and mrb_define_const on mruby.h
2015-10-11 08:55:56 -04:00
Seba Gamboa
87e0840e9d
Fix mrb_obj_respond_to
2015-10-08 15:34:51 -03:00
Seba Gamboa
249226730f
Formatting docs to new YARD structure
2015-10-08 12:29:11 -03:00
Seba Gamboa
facc4bf428
Fix samples syntax highlighting
2015-10-08 12:29:11 -03:00
Seba Gamboa
a0fe0c40b1
Remove old doxygen tags
2015-10-08 12:29:10 -03:00
Seba Gamboa
554406b987
Testing @see tag
2015-10-08 12:29:10 -03:00
takahashim
df83d42935
fix signature of mrb_class_new_instance()
...
dd925578c6 changed the order of arguments,
but it doesn't seem intentional.
2015-09-27 17:33:13 +09:00
Yukihiro "Matz" Matsumoto
e47f0fc0c2
Merge pull request #2959 from sagmor/api-documentation
...
C API documentation
2015-09-22 04:14:31 +09:00
Yukihiro "Matz" Matsumoto
73dc32c670
add new functions mrb_gc_register/unregister; close #1411
...
some routines need to refer mruby objects (e.g. callbacks), in that case
you have to protect your objects from garbage collection. the new functions
mrb_gc_register() keeps those objects from GC. you have to remove your
objects using mrb_gc_unregister() when your C routines use mruby objects
any longer, otherwise objects will leak.
2015-09-22 00:15:29 +09:00
Seba Gamboa
dd925578c6
Sort compiler macros around
2015-09-21 11:59:39 -03:00
Seba Gamboa
40bf7bde78
Sorting documentation grouping
2015-09-21 01:48:42 -03:00
Seba Gamboa
c127614638
Setting up doxygen groups
2015-09-20 21:14:07 -03:00
Seba Gamboa
f36944f551
Merging documentation from docs
2015-09-20 18:57:17 -03:00
Seba Gamboa
7505bad677
Playing around with some documentations schemes
2015-09-18 23:59:29 -03:00
Yasuhiro Matsumoto
8277e950ee
Support windows locale
...
Add mrb_utf8_from_locale, mrb_utf8_free, mrb_locale_from_utf8, mrb_locale_free. Just works for windows.
2015-09-11 11:12:03 +09:00
felixjones
8e72558bac
Added mrb_get_argc and mrb_get_mid
2015-08-16 23:41:21 +01:00
Corey Powell
26bee4a16b
Added mrb_prepend_module to mruby header
2015-07-16 15:25:27 -05:00
Yukihiro "Matz" Matsumoto
e88e7dc8db
remove deprecated.h
2015-06-24 10:05:05 +09:00
furunkel
e90f0d51a3
Move deprecated macros and functions to dedicated header file
2015-06-23 10:35:02 +02:00
cremno
85075bef75
simplify all IS* and TO* macros
...
Reduces the file size (by up to 2 KB with VS2015 RC, /O2, /MD) and
removes the requirement of including <ctype.h> before their usage.
Multiple macro argument evaluation and lack of type-checking is still an
issue.
2015-05-28 10:20:41 +02:00
cremno
cd4cc3bd9d
simplify ISASCII() macro
2015-05-28 10:10:05 +02:00
cremno
dc479392ef
fix type of mrb_exc_new()'s len parameter
...
mrb_str_new() takes size_t, so should mrb_exc_new().
2015-05-18 22:18:53 +02:00
Daniel Bovensiepen
02fffb02d2
Update Coopyright Information to year 2015
2015-05-15 15:12:32 +08:00
Yukihiro "Matz" Matsumoto
44d8a40bac
add a prototype declaration for mrb_fiber_resume(); ref #1269
2015-02-19 11:38:05 +09:00
Tatsuhiko Kubo
dae42ffe54
Removed duplicated declarations.
...
* `mrb_show_version()`
* `mrb_show_copyright()`
2015-01-03 22:56:36 +09:00
cremno
f6d15cfc38
fix ISBLANK() for Visual Studio < 2013 (ref #2658 )
...
Visual Studio versions older than 2013 lack C99's isblank().
Since only ASCII characters are passed to it, implement it
directly without calling the locale-specific isblank().
2014-12-02 00:43:45 +01:00
Hiroshi Mimaki
4e4bfb08cb
Merge pull request #2640 from mruby-Forum/v1.1.0
...
mruby-1.1.0
2014-11-19 09:02:10 +09:00
Yukihiro "Matz" Matsumoto
5c6d6309b6
separate mrb_notimplement() and mrb_notimplement_m(); ref #2636
2014-11-19 01:03:19 +09:00
mimaki
e5bacc03f2
Add mruby debugger (mrdb)
2014-11-18 23:33:32 +09:00
ksss
9a06cfa9d8
Implement C API mrb_notimplement
2014-11-17 17:42:20 +09:00
Jun Hiroe
5235e54137
Fix mrb_convert_to_integer.
2014-10-29 01:30:30 +09:00
Yukihiro "Matz" Matsumoto
4a55b42984
O(1) mrb_sym2name_len(); close #2591
...
instead of adding sym->name hash table, linear symbol table is added, and reduced name->sym hash table size.
2014-09-30 20:15:27 +09:00
Yukihiro "Matz" Matsumoto
6057b2e378
change mrb_sym type from uint16_t to uint32_t
2014-09-15 01:48:08 +09:00
cremno
89b27648dd
add symbol table overflow check
...
Since raising an error might intern a few new strings, some symbols need
to be reserved. 8 should be sufficient.
If the real limit has been reached, mrb_bug() is called.
2014-08-27 12:51:10 +02:00
Jun Hiroe
21f583783d
Rename GC_STATE_NONE GC_STATE_ROOT
2014-08-06 22:59:48 +09:00
Yukihiro "Matz" Matsumoto
206f89e209
add MRB_API modifiers to mruby API functions
2014-08-04 00:47:08 +09:00
take_cheeze
fc9a91c4a6
Add field allocf_ud to replace current ud.
...
Since some use it as `mrb_state` associated user data.
2014-07-17 21:48:17 +09:00
Yukihiro "Matz" Matsumoto
4501598f27
use SystemStackError instead of RuntimeError
2014-07-12 21:29:46 +09:00
David Turnbull
249f05e7d7
Clean up value.h and mrb_value boxing
2014-07-09 06:32:11 +09:00
take_cheeze
baca365caa
rename mrb_open_without_mrbgems to mrb_open_core
2014-06-23 20:06:17 +09:00
take_cheeze
36813c87f6
make default allocf public to use it with mrb_open_without_mrbgems
2014-06-23 20:06:17 +09:00
take_cheeze
6bb56ed920
add mrb_open_without_mrbgems API
2014-06-23 20:06:17 +09:00
take_cheeze
62f41ddd3b
Add fixed state atexit stack feature.
...
Adds following macros:
* MRB_FIXED_STATE_ATEXIT_STACK (not defined by default)
* When defined enables fixed state atexit stack.
* MRB_FIXED_STATE_ATEXIT_STACK_SIZE (default value: 5)
* This macro will be ignored when `MRB_FIXED_STATE_ATEXIT_STACK` isn't defined.
* When `mrb_state_atexit` is called more than this value it will raise runtime error.
2014-06-16 16:03:35 +09:00
Yukihiro "Matz" Matsumoto
fe95f44013
rename mrb_atexit to mrb_state_atexit to clarify a func will be called at the end of state, not process; ref #2211
2014-06-10 17:59:56 +09:00
take_cheeze
4de468e754
Fallback to mrb_assert instead of dirty trick.
2014-06-09 18:47:07 +09:00
take_cheeze
4a27dd0e8a
Use _Static_assert when C11 is available and use it in pointer size check.
2014-06-08 23:16:51 +09:00