summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/genie/src/host/path_isabsolute.c
diff options
context:
space:
mode:
author Branimir Karadžić <branimirkaradzic@gmail.com>2017-03-29 17:31:27 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2017-03-29 17:31:27 +0200
commit88ca8d5b48ab22e85991f2a5f075cad7673caf7d (patch)
treec3064a9c0a5d4029b930c77606536e888815a8ef /3rdparty/genie/src/host/path_isabsolute.c
parente095ef959be497299ef77db0c1929579e9c754e1 (diff)
Update GENie (nw)
Diffstat (limited to '3rdparty/genie/src/host/path_isabsolute.c')
-rw-r--r--3rdparty/genie/src/host/path_isabsolute.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/3rdparty/genie/src/host/path_isabsolute.c b/3rdparty/genie/src/host/path_isabsolute.c
index 961ed77f03c..b7ff678a5b5 100644
--- a/3rdparty/genie/src/host/path_isabsolute.c
+++ b/3rdparty/genie/src/host/path_isabsolute.c
@@ -6,17 +6,13 @@
#include "premake.h"
-
int path_isabsolute(lua_State* L)
{
const char* path = luaL_checkstring(L, -1);
- if (path[0] == '/' || path[0] == '\\' || path[0] == '$' || (path[0] != '\0' && path[1] == ':'))
- {
+ if (is_absolute_path(path)) {
lua_pushboolean(L, 1);
return 1;
- }
- else
- {
- return 0;
}
+
+ return 0;
}