diff options
author | Oliver Schneider <oliver@assarbad.net> | 2016-01-12 23:01:22 +0300 |
---|---|---|
committer | Oliver Schneider <oliver@assarbad.net> | 2016-01-12 23:01:22 +0300 |
commit | 32dbee7029ba110af841e67b0816b747bdf3c0c2 (patch) | |
tree | eb225f5fc540ba11a65fcf648f0e0d2578d7b528 /src/host/premake.c | |
parent | c156c8b6a15d155fa4e2716046e1572c36927e8e (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-x | src/host/premake.c | 4 |
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 |