mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-14 00:07:36 +02:00
Increase number of allowed arguments
This commit is contained in:
parent
15ad366324
commit
1afc5091c8
1 changed files with 7 additions and 2 deletions
|
@ -112,7 +112,7 @@
|
|||
return 0;}")
|
||||
|
||||
;;; Auto-generation of C macros
|
||||
(define *c-call-max-args* 128)
|
||||
(define *c-call-max-args* 10000)
|
||||
(define *c-call-arity* (make-vector (+ 1 *c-call-max-args*) #f))
|
||||
|
||||
(define (set-c-call-arity! arity)
|
||||
|
@ -120,7 +120,12 @@
|
|||
((not (number? arity))
|
||||
(error `(Non-numeric number of arguments received ,arity)))
|
||||
((> arity *c-call-max-args*)
|
||||
(error "Only support up to 128 arguments. Received: " arity))
|
||||
(error
|
||||
(string-append
|
||||
"Only support up to "
|
||||
(number->string *c-call-max-args*)
|
||||
" arguments. Received: ")
|
||||
arity))
|
||||
(else
|
||||
(vector-set! *c-call-arity* arity #t))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue