Skip to content

Commit 966d74f

Browse files
authored
fix bee.platform (actboy168#323)
* fix bee.platform * Update bee_module.cpp * format code
1 parent 758d789 commit 966d74f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/luadebug/luadbg/bee_module.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ extern "C" {
2727
#include <bee/lua/error.cpp>
2828
#include <bee/lua/file.cpp>
2929
#include <bee/lua/luaref.cpp>
30+
#include <bee/version.cpp>
3031
#include <binding/lua_channel.cpp>
3132
#include <binding/lua_epoll.cpp>
3233
#include <binding/lua_filesystem.cpp>
34+
#include <binding/lua_platform.cpp>
3335
#include <binding/lua_select.cpp>
3436
#include <binding/lua_socket.cpp>
3537
#include <binding/lua_sys.cpp>
@@ -38,6 +40,7 @@ extern "C" {
3840
#include "luadbg/bee_module.h"
3941

4042
#if defined(_WIN32)
43+
# include <bee/win/module_version.cpp>
4144
# include <binding/port/lua_windows.cpp>
4245
#endif
4346

@@ -49,6 +52,7 @@ extern "C" int luaopen_bee_channel(luadbg_State* L);
4952
extern "C" int luaopen_bee_epoll(luadbg_State* L);
5053
extern "C" int luaopen_bee_filesystem(luadbg_State* L);
5154
extern "C" int luaopen_bee_socket(luadbg_State* L);
55+
extern "C" int luaopen_bee_platform(luadbg_State* L);
5256
extern "C" int luaopen_bee_sys(luadbg_State* L);
5357
extern "C" int luaopen_bee_thread(luadbg_State* L);
5458
#if defined(_WIN32)
@@ -64,6 +68,7 @@ static luadbgL_Reg cmodule[] = {
6468
{ "bee.epoll", luaopen_bee_epoll },
6569
{ "bee.filesystem", luaopen_bee_filesystem },
6670
{ "bee.socket", luaopen_bee_socket },
71+
{ "bee.platform", luaopen_bee_platform },
6772
{ "bee.sys", luaopen_bee_sys },
6873
{ "bee.thread", luaopen_bee_thread },
6974
#if defined(_WIN32)

0 commit comments

Comments
 (0)