Skip to content

Commit

Permalink
Fix #3
Browse files Browse the repository at this point in the history
  • Loading branch information
UncleRus committed Oct 2, 2021
1 parent 76c790e commit cca1a60
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions lua/luaconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <limits.h>
#include <stddef.h>

#define LUA_USE_ESP_IDF

/*
** ===================================================================
Expand Down Expand Up @@ -215,6 +216,24 @@
LUA_CDIR"loadall.dll;" ".\\?.dll"
#endif

#elif defined(LUA_USE_ESP_IDF) /* }{ */

#define LUA_ROOT CONFIG_LUA_ROOT "/"
#define LUA_LDIR LUA_ROOT
#define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR "/"

#if !defined(LUA_PATH_DEFAULT)
#define LUA_PATH_DEFAULT \
LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \
LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua;" \
"./?.lua;" "./?/init.lua"
#endif

#if !defined(LUA_CPATH_DEFAULT)
#define LUA_CPATH_DEFAULT \
LUA_CDIR"?.so;" LUA_CDIR"loadall.so;" "./?.so"
#endif

#else /* }{ */

#define LUA_ROOT "/usr/local/"
Expand Down

0 comments on commit cca1a60

Please sign in to comment.