diff options
| author | Saikari <[email protected]> | 2026-01-28 18:49:00 +0300 |
|---|---|---|
| committer | Saikari <[email protected]> | 2026-01-28 18:49:00 +0300 |
| commit | a258bf46f84f9be20e990db154f5cc9e8fbc4c3e (patch) | |
| tree | 8b80cc1c6d562c3e40e446f08641f81a87d6b95a /core/src/xmake/engine.c | |
| parent | 9c86aa7667c81d4e492d7418702ae50befdbd38b (diff) | |
Add parse_pe function to check for PE headers and enhance os.isexec for Windows
Diffstat (limited to 'core/src/xmake/engine.c')
| -rw-r--r-- | core/src/xmake/engine.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/xmake/engine.c b/core/src/xmake/engine.c index a77cc4a9b..4a55df07f 100644 --- a/core/src/xmake/engine.c +++ b/core/src/xmake/engine.c @@ -177,6 +177,7 @@ tb_int_t xm_io_file_flush(lua_State *lua); tb_int_t xm_io_file_close(lua_State *lua); tb_int_t xm_io_file_convert(lua_State *lua); tb_int_t xm_io_file_isatty(lua_State *lua); +tb_int_t xm_io_parse_pe(lua_State *lua); // the io/filelock functions tb_int_t xm_io_filelock_open(lua_State *lua); @@ -497,6 +498,7 @@ static luaL_Reg const g_io_functions[] = { { "file_write", xm_io_file_write }, { "file_flush", xm_io_file_flush }, { "file_isatty", xm_io_file_isatty }, + { "parse_pe", xm_io_parse_pe }, { "file_close", xm_io_file_close }, { "file_convert", xm_io_file_convert }, { "file_rawfd", xm_io_file_rawfd }, |
