Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remap callback argument error on Ruby #2689

Open
hadamak opened this issue Sep 25, 2024 · 1 comment
Open

remap callback argument error on Ruby #2689

hadamak opened this issue Sep 25, 2024 · 1 comment

Comments

@hadamak
Copy link

hadamak commented Sep 25, 2024

How to use the remap callback on Ruby?

# script:  ruby

def remap(t,x,y)
	t
end

def TIC
	cls 13
	map 0,0,30,17,0,0,-1,1,remap
end

'remap': wrong number of arguments (0
or 3) (ArgumentError)
user code:3:in remap
user code:9:in TIC
user code:7

@anescient
Copy link
Contributor

Some detective work: the message "wrong number of arguments (X for Y)" was changed in mruby 3 years ago: mruby/mruby@c4bca7c

Another commit from around the same time which could be relevant: mruby/mruby@16e3888

Maybe mruby just needs an update, here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants