lua-users home
lua-l archive

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


Stefan Sandberg wrote:
> Eh, I don't even want to ask, but are you using bin2c on C code?

???

No, I have a Lua file that I compile with luac and the result goes
through bin2c.  And that leaves me with a file that looks somewhat
like this:

/* code automatically generated by bin2c -- DO NOT EDIT */
{
/* #include'ing this file in a C program is equivalent to calling
  lua_dofile(L,".\build\obj\bin2c\stuff.lc");
*/
/* .\build\obj\bin2c\stuff.lc */
static const unsigned char B1[]={
... lots of numbers ...
};
 lua_dobuffer(L,(const char*)B1,sizeof(B1),".\build\obj\bin2c\stuff.lc");
}

And you can't have that as a normal top level include (like for a real
header file).  It needs to be included inside a function.

Have things change in any dramatic way in 5.1?

Robby

--
r dot raschke at tombob dot com