X-Git-Url: http://nitlanguage.org diff --git a/src/icode/icode_base.nit b/src/icode/icode_base.nit index b2c67f0..496d399 100644 --- a/src/icode/icode_base.nit +++ b/src/icode/icode_base.nit @@ -18,7 +18,6 @@ package icode_base import metamodel -import mmloader ## UTILITY CLASSES ## @@ -223,6 +222,9 @@ abstract class IAbsCall # The called method readable var _property: MMMethod + # if this call is to be made from native code + var is_explicit_from_extern : Bool writable = false + init(p: MMMethod, e: Sequence[IRegister]) do super(e) @@ -332,7 +334,10 @@ class INative init(m: MMMethod, e: nullable Sequence[IRegister]) do - super(e) + # Checks that arguments contains at least one IRegister element + assert e.length == m.signature.arity + 1 + + super(e) _method = m end