summaryrefslogtreecommitdiff
path: root/py/emitnative.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-09-15 16:06:58 +1000
committerDamien George <damien.p.george@gmail.com>2018-09-15 22:39:27 +1000
commita676b5acf6ee9c17926cf9786370d30a077d99c0 (patch)
tree0b585dccd74596c7050c16197da1887c2fc8f639 /py/emitnative.c
parent43f1848bfa81aa3cb0acd1e34eece0a11aa130d0 (diff)
py/emitnative: Support arbitrary number of arguments to viper functions.
Diffstat (limited to 'py/emitnative.c')
-rw-r--r--py/emitnative.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/py/emitnative.c b/py/emitnative.c
index b26beb407..4188b4256 100644
--- a/py/emitnative.c
+++ b/py/emitnative.c
@@ -295,13 +295,6 @@ STATIC void emit_native_start_pass(emit_t *emit, pass_kind_t pass, scope_t *scop
// generate code for entry to function
if (emit->do_viper_types) {
-
- // right now we have a restriction of maximum of 4 arguments
- if (scope->num_pos_args > REG_ARG_NUM) {
- EMIT_NATIVE_VIPER_TYPE_ERROR(emit, "Viper functions don't currently support more than 4 arguments");
- return;
- }
-
// Work out size of state (locals plus stack)
// n_state counts all stack and locals, even those in registers
emit->n_state = scope->num_locals + scope->stack_size;