added MOO_METHOD_PREAMBLE_FLAG_DUAL and set it on in a method preamble for a dual method

This commit is contained in:
hyunghwan.chung
2017-04-26 15:44:57 +00:00
parent 6fe65f66fc
commit be57cffbe6
2 changed files with 7 additions and 5 deletions

View File

@ -6015,6 +6015,7 @@ static int add_compiled_method (moo_t* moo)
/*if (moo->c->mth.variadic) */
preamble_flags |= moo->c->mth.variadic;
if (moo->c->mth.type == MOO_METHOD_DUAL) preamble_flags |= MOO_METHOD_PREAMBLE_FLAG_DUAL;
MOO_ASSERT (moo, MOO_OOI_IN_METHOD_PREAMBLE_INDEX_RANGE(preamble_index));