1
0
Fork 0
forked from len0rd/rockbox

lua optimize current_path function

frees up around 500 bytes by using the builtin string functionality

Change-Id: Icd4ec921d3fec339b8a4b7f80c9c63d51d4c101c
This commit is contained in:
William Wilgus 2018-10-13 13:35:01 -04:00
parent 0b7a8d5afd
commit 07fed9053a
4 changed files with 13 additions and 24 deletions

View file

@ -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_ */