Skip to content

Commit

Permalink
adding the 'foreach' alias for plane.fill to instanced planes as well…
Browse files Browse the repository at this point in the history
… as to the library table

Signed-off-by: Addison Schuhardt <addison@schuhardt.net>
  • Loading branch information
aschuhardt committed Aug 20, 2021
1 parent 2b74273 commit e1991b6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,13 @@ add_subdirectory(lua)

# add benchmark tools
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/bench")

install(
TARGETS ${SU_LIBRARY} ${SU_LIBRARY_STATIC}
CONFIGURATIONS Release
RUNTIME DESTINATION /usr/local/lib)

install(
TARGETS procyon-lua
CONFIGURATIONS Release
RUNTIME DESTINATION /usr/local/bin)
3 changes: 3 additions & 0 deletions lua/src/script/plane.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ static int plane_from(lua_State *L) {
lua_pushcfunction(L, plane_fill);
lua_setfield(L, -2, FUNC_PLANE_FILL);

lua_pushcfunction(L, plane_fill);
lua_setfield(L, -2, FUNC_PLANE_FOREACH);

return 1;
}

Expand Down

0 comments on commit e1991b6

Please sign in to comment.