lua-users home
lua-l archive

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



On 19 Dec 2008, at 05:13, Rob Hoelz wrote:

I believe you can do the following:

char *luaCode = "function foo()\n"
    "  print('foo')\n"
    "end";

Not ideal, but hey, it works.

Yes, adjacent literal strings just get concatenated. The portable limit on the total length of the string as specified in the standard is 4095 characters (in C99). If you are generating C code with a program you can easily go past this.

drj