This commit is contained in:
Philippe Teuwen 2019-04-11 00:10:21 +02:00
parent 6416de1a38
commit 35e97ba96a
16 changed files with 31 additions and 27 deletions

View file

@ -847,7 +847,7 @@ static int l_T55xx_detect(lua_State *L) {
* @param path
* @return
*/
int setLuaPath(lua_State *L, const char *path) {
static int setLuaPath(lua_State *L, const char *path) {
lua_getglobal(L, "package");
lua_getfield(L, -1, "path"); // get field "path" from table at top of stack (-1)
const char *cur_path = lua_tostring(L, -1); // grab path string from top of stack