lua-users home
lua-l archive

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

Hi everyone,
I would like to say I have figured this out myself, it was a problem with my Lua include file for PureBasic. It imported
luaL_loadbuffer incorrectly, rather then having *buffer and *name as arguments, it required strings. I've changed this
to pointers and it all works splendid now.
Thank you all.

Sent: Wednesday, June 23, 2010 3:16 PM
Subject: Loading compiled lua.

Hi all,
I have got a question, I have never yet loaded compiled lua scripts from C api, and I've seen luaL_loadbuffer. However,
I'm not sure if this is the proc to use for loading a memorybuffer filled with bytecode.
The memorybuffer contains compiled lua, must I pass on the pointer to the buffer as second argument for luaL_loadbuffer?

__________ NOD32 5221 (20100623) Informatie __________

Dit bericht is gecontroleerd door het NOD32 Antivirus Systeem.