فهرست منبع

update: air302启用全局方法静态化,测试ok

Wendal Chen 4 سال پیش
والد
کامیت
891086a526
2فایلهای تغییر یافته به همراه5 افزوده شده و 3 حذف شده
  1. 2 0
      bsp/air302/include/luat_conf_bsp.h
  2. 3 3
      bsp/win32/port/luat_base_win32.c

+ 2 - 0
bsp/air302/include/luat_conf_bsp.h

@@ -17,4 +17,6 @@
 
 #define LUAT_USE_VFS_INLINE_LIB 1
 
+#define LUAT_MEMORY_OPT_G_FUNCS 1
+
 #endif

+ 3 - 3
bsp/win32/port/luat_base_win32.c

@@ -30,10 +30,10 @@ static const luaL_Reg loadedlibs[] = {
   {"zbuff", luaopen_zbuff},            // 
   {"mqttcore", luaopen_mqttcore},      // 
   {"libcoap", luaopen_libcoap},        // 
-// #ifdef LUA_USE_WINDOWS
-//   {"lfs", luaopen_lfs},                //
+#ifdef LUA_USE_WINDOWS
+  {"lfs", luaopen_lfs},                //
 //   {"rs232.core", luaopen_rs232_core},
-// #endif
+#endif
   {"crypto", luaopen_crypto},
   {NULL, NULL}
 };