Skip to content

Commit

Permalink
Glfw implementation for glfw.terminate function.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Dec 13, 2024
1 parent 750db08 commit bb28599
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions std/n8std/GLFW.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@
N8_FUNC(glfw_init) {
return DynamicObject(glfwInit() == 1);
}

N8_FUNC(glfw_terminate) {
glfwTerminate();
return DynamicObject();
}
1 change: 1 addition & 0 deletions std/n8std/GLFW.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
N8_LIB_START

N8_FUNC(glfw_init);
N8_FUNC(glfw_terminate);

N8_LIB_END

Expand Down

0 comments on commit bb28599

Please sign in to comment.