From 07fed9053a476b4c6e5ecd23fc43ec84f4094978 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Sat, 13 Oct 2018 13:35:01 -0400 Subject: lua optimize current_path function frees up around 500 bytes by using the builtin string functionality Change-Id: Icd4ec921d3fec339b8a4b7f80c9c63d51d4c101c --- apps/plugins/lua/rocklib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/plugins/lua/rocklib.h') diff --git a/apps/plugins/lua/rocklib.h b/apps/plugins/lua/rocklib.h index 25b5ae1088..b650207e67 100644 --- a/apps/plugins/lua/rocklib.h +++ b/apps/plugins/lua/rocklib.h @@ -46,7 +46,7 @@ struct lua_str_reg { }; LUALIB_API int (luaopen_rock) (lua_State *L); -const char* get_current_path(lua_State *L, int level); +int get_current_path(lua_State *L, int level); #endif /* _ROCKLIB_H_ */ -- cgit v1.2.3