Ver Fonte

fix: antbot,仅在开启antbot时才实际编译antbot的内容

https://gitee.com/openLuat/LuatOS/issues/ICBEN3
Wendal Chen há 9 meses atrás
pai
commit
a520e07afe
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      components/antbot/binding/luat_lib_antbot.c

+ 3 - 0
components/antbot/binding/luat_lib_antbot.c

@@ -12,6 +12,7 @@
 -- 具体用法请查阅demo,并联系蚂蚁链获取技术支持
  */
 #include "luat_base.h"
+#ifdef LUAT_USE_ANTBOT
 #include "rotable2.h"
 #include "luat_zbuff.h"
 #include "luat_lib_antbot.h"
@@ -317,3 +318,5 @@ LUAMOD_API int luaopen_antbot(lua_State *L)
     luat_newlib2(L, reg_antbot);
     return 1;
 }
+
+#endif