Skip to content

[libretro] The core treats Fennel "case" keyword as global var #2879

@FMQmx55Q

Description

@FMQmx55Q

When running the following code through Retroarch

(fn _G.TIC []
	(cls)
	(print (case (% (math.floor (/ (time) 1000)) 2)
		0 "Zero"
		1 "One")))

it fails with the error

[INFO] [Environ] SET_MESSAGE: game:3: attempt to call a nil value (global 'case')
stack traceback:
	game:3: in function 'TIC'

Web and Standalone work OK.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions