mirror of
https://github.com/lunarmodules/luafilesystem.git
synced 2026-07-24 20:33:06 +00:00
Initial revision
This commit is contained in:
10
luafilesystem.h
Normal file
10
luafilesystem.h
Normal file
@@ -0,0 +1,10 @@
|
||||
/* Define 'chdir' for systems that do not implement it */
|
||||
/* $Id: luafilesystem.h,v 1.1 2004/07/27 14:15:24 tomas Exp $ */
|
||||
#ifdef NO_CHDIR
|
||||
#define chdir(p) (-1)
|
||||
#define chdir_error "Function 'chdir' not provided by system"
|
||||
#else
|
||||
#define chdir_error strerror(errno)
|
||||
#endif
|
||||
|
||||
int luaopen_filesystem (lua_State *L);
|
||||
Reference in New Issue
Block a user