[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: calling script with dobuffer doesnt work
- From: "Matthias Gall" <matthias@...>
- Date: Sun, 25 Feb 2001 13:29:52 +0100
its me again with another simple problem. i managed to get lua run in my
vc++ implementation (thanks to terence martin, it was the extern "C" ...
stuff). now, i am trying to call a script that i read into a char* buffer.
the script looks like that
a = 1
b = a + 1
and is read correctly into the buffer. also, the script works well with
lua.exe or luac.exe. but calling lua_dobuffer won't work. it always returns
LUA_ERRSYNTAX, but i can't find any syntax error in my small script?! the
parameters for lua_dobuffer also should be correct (my state, the buffer and
its length, and NULL as the last parameter, hope that's ok).
thanks in advance,