Use 'MRB_FUNCTION' instead of 'MRB_METHOD' for modules
This commit is contained in:
parent
121df799ab
commit
d151986c72
9 changed files with 61 additions and 131 deletions
|
@ -129,9 +129,14 @@ getMrbData(mrb_state *mrb)
|
|||
|
||||
#define MRB_METHOD(name) static MRB_METHOD_PUB(name)
|
||||
|
||||
#define MRB_FUNCTION(name) \
|
||||
static mrb_value name(mrb_state *mrb, mrb_value)
|
||||
|
||||
#define MRB_UNUSED_PARAM \
|
||||
{ (void) mrb; (void) self; }
|
||||
|
||||
#define MRB_FUN_UNUSED_PARAM { (void) mrb; }
|
||||
|
||||
/* If we're not binding a disposable class,
|
||||
* we want to #undef DEF_PROP_CHK_DISP */
|
||||
#define DEF_PROP_CHK_DISP \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue