diff options
author | 2017-03-29 17:31:27 +0200 | |
---|---|---|
committer | 2017-03-29 17:31:27 +0200 | |
commit | 88ca8d5b48ab22e85991f2a5f075cad7673caf7d (patch) | |
tree | c3064a9c0a5d4029b930c77606536e888815a8ef /3rdparty/genie/src/host/path_getabsolute.c | |
parent | e095ef959be497299ef77db0c1929579e9c754e1 (diff) |
Update GENie (nw)
Diffstat (limited to '3rdparty/genie/src/host/path_getabsolute.c')
-rw-r--r-- | 3rdparty/genie/src/host/path_getabsolute.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/3rdparty/genie/src/host/path_getabsolute.c b/3rdparty/genie/src/host/path_getabsolute.c new file mode 100644 index 00000000000..f0a7b6e532c --- /dev/null +++ b/3rdparty/genie/src/host/path_getabsolute.c @@ -0,0 +1,15 @@ +/** + * \file path_getabsolute.c + * \brief Calculate the absolute path from a relative path + */ + +#include "premake.h" + +int path_getabsolute(lua_State *L) +{ + const char *path = luaL_checkstring(L, -1); + char buffer[PATH_BUFSIZE]; + get_absolute_path(path, buffer, PATH_BUFSIZE); + lua_pushstring(L, buffer); + return 1; +} |