Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
retro8
Commits
97d72688
Unverified
Commit
97d72688
authored
Feb 28, 2022
by
Libretro-Admin
Committed by
GitHub
Feb 28, 2022
Browse files
Merge pull request #7 from phcoder/celeste
Fix implementation of foreach
parents
e5eb7383
407c5312
Pipeline
#90283
passed with stage
in 2 minutes and 1 second
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
data/api.lua
View file @
97d72688
...
...
@@ -24,7 +24,7 @@ end
function
foreach
(
c
,
f
)
if
c
~=
nil
then
for
key
,
value
in
ipairs
(
c
)
do
for
value
in
all
(
c
)
do
f
(
value
)
end
end
...
...
src/gen/lua_api.h
View file @
97d72688
...
...
@@ -25,7 +25,7 @@ const char* lua_api_string =
"
\n
"
"function foreach(c, f)
\n
"
" if c ~= nil then
\n
"
" for
key,
value in
ipairs
(c) do
\n
"
" for value in
all
(c) do
\n
"
" f(value)
\n
"
" end
\n
"
" end
\n
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment