lua-users home
lua-l archive

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


try passing something like this to lua_dostring()

char *lua_code = "a = 1\nb = a + 1\nwrite(b)\n";



-----Original Message-----
From: Matthias Gall [mailto:matthias@sechsta-sinn.de]
Sent: Monday, February 26, 2001 10:44 AM
To: Multiple recipients of list
Subject: Re: calling script with dobuffer doesnt work


> Have you embedded newlines into your buffer?

What exactly do you mean? I read the script from a file into the buffer and
don't change anything, so CR and LF are still there (I dumped the buffer and
it looked okay).

Matt