diff options
author | wm4 <wm4@nowhere> | 2014-03-01 00:50:59 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-03-01 00:50:59 +0100 |
commit | 32d18d77cd3afd49f8d221db50ab8fc23dbdd340 (patch) | |
tree | 9ce6dd4e86e7a5788037cc71848cd40ff693cc43 /sub | |
parent | d706f8181a5c9f135d6167fd1a2b4c1921c08a86 (diff) | |
download | mpv-32d18d77cd3afd49f8d221db50ab8fc23dbdd340.tar.bz2 mpv-32d18d77cd3afd49f8d221db50ab8fc23dbdd340.tar.xz |
lua: set a proper chunk name for builtin modules
luaL_loadstring(), which was used until now, uses the start of the Lua
code itself as chunk name. Since the chunk name shows up even with
runtime errors triggered by e.g. Lua code loaded from user scripts, this
looks a but ugly. Switch to luaL_loadbuffer(), which is almost the same
as luaL_loadstring(), but allows setting a chunk name.
Diffstat (limited to 'sub')
0 files changed, 0 insertions, 0 deletions