lua-users home
lua-l archive

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


hello everyone,

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
write (b)
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,
matt