summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/genie/src/host/path_isabsolute.c
diff options
context:
space:
mode:
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;
}