Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Schneider <oliver@assarbad.net>2016-01-12 23:01:22 +0300
committerOliver Schneider <oliver@assarbad.net>2016-01-12 23:01:22 +0300
commit32dbee7029ba110af841e67b0816b747bdf3c0c2 (patch)
treeeb225f5fc540ba11a65fcf648f0e0d2578d7b528 /src/host/premake.c
parentc156c8b6a15d155fa4e2716046e1572c36927e8e (diff)
Adding the names of the scripts so the traceback for chunks gives more usable output
--HG-- branch : WDS-build
Diffstat (limited to 'src/host/premake.c')
-rwxr-xr-xsrc/host/premake.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/host/premake.c b/src/host/premake.c
index 8b9d550..df4d004 100755
--- a/src/host/premake.c
+++ b/src/host/premake.c
@@ -360,6 +360,10 @@ static int load_file_scripts(lua_State* L)
}
}
+extern const char* builtin_script_fnames[];
+
+#define luaL_dobuffer(L, s, n) \
+ (luaL_loadbuffer(L, s, strlen(s), n) || lua_pcall(L, 0, LUA_MULTRET, 0))
/**
* When running in release mode, the scripts are loaded from a static data