lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> I can imagine a scenario in which one would not want to expose actual
> source code, but would be willing to provide an API naming the upvalues.

The source code is present in a precompiled chunk only if the code is loaded
with luaL_loadstring or plain load. By using luaL_loadbuffer or optional
arguments in load, you can provide you own string for error messages
instead of the source code.