mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby.h (mrb_alloc): better description for the function type
This commit is contained in:
+2
-2
@@ -162,11 +162,11 @@ struct mrb_state;
|
||||
*
|
||||
* The function pointing it must behave similarly as realloc except:
|
||||
* - If ptr is NULL it must allocate new space.
|
||||
* - If s is NULL, ptr must be freed.
|
||||
* - If size is zero, ptr must be freed.
|
||||
*
|
||||
* See @see mrb_default_allocf for the default implementation.
|
||||
*/
|
||||
typedef void* (*mrb_allocf) (struct mrb_state *mrb, void*, size_t, void *ud);
|
||||
typedef void* (*mrb_allocf) (struct mrb_state *mrb, void *ptr, size_t size, void *ud);
|
||||
|
||||
#ifndef MRB_FIXED_STATE_ATEXIT_STACK_SIZE
|
||||
#define MRB_FIXED_STATE_ATEXIT_STACK_SIZE 5
|
||||
|
||||
Reference in New Issue
Block a user