Просмотр исходного кода

fix: bsp/win32新的io函数没生效

Wendal Chen 3 лет назад
Родитель
Сommit
58ef0f6b35
1 измененных файлов с 7 добавлено и 7 удалено
  1. 7 7
      lua/src/liolib.c

+ 7 - 7
lua/src/liolib.c

@@ -909,13 +909,13 @@ static const rotable_Reg_t iolib[] = {
   {"open", ROREG_FUNC(io_open)},
 #ifdef LUA_USE_WINDOWS
   {"popen", ROREG_FUNC(io_popen)},
-  {"read", io_read,    0},
-  {"tmpfile", io_tmpfile, 0},
-  {"write", io_write,  0},
-  {"close", io_close,  0},
-  {"flush", io_flush,  0},
-  {"input", io_input,  0},
-  {"output", io_output,0},
+  {"read", ROREG_FUNC(io_read)},
+  {"tmpfile", ROREG_FUNC(io_tmpfile)},
+  {"write", ROREG_FUNC(io_write)},
+  {"close", ROREG_FUNC(io_close)},
+  {"flush", ROREG_FUNC(io_flush)},
+  {"input", ROREG_FUNC(io_input)},
+  {"output", ROREG_FUNC(io_output)},
 #endif
   {"type", ROREG_FUNC(io_type)},
   {"exists", ROREG_FUNC(io_exists)},