lua-users home
lua-l archive

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



Tony Papadimitriou <tonyp@acm.org>于2017年2月28日 周二下午10:56写道:
How would one do the equivalent of luaL_dostring() but instead of a null terminated C string with source code I want to load the binary output of luac compiled code.
And I want to get this code to be loaded from a C array, not from some external file.  Is this possible, and if so, can someone provide an example?
 
Thank you.

luaL_loadbuffer
--
regards,
Xavier Wang.