lua-users home
lua-l archive

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


Hello.

There are luaL_dofile and luaL_dostring, but not
luaL_dobuffer.

Is there any technical reason to that?

I've implemented luaL_dobuffer like this:

#define luaL_dobuffer(L, b, n, s) \
	(luaL_loadbuffer(L, b, n, s) || lua_pcall(L, 0,
LUA_MULTRET, 0))


Is there correct?


__________________________________________________
Fale com seus amigos  de graça com o novo Yahoo! Messenger 
http://br.messenger.yahoo.com/