lua-users home
lua-l archive

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


Forgive me if this is a beginner question, but is there a way to parse lua from c++ without using much memory?

 

I have some large lua files.  I notice I could use lauxlib.h and call luaL_loadstring, but that looks like it will use about as much memory as the size of the lua file, which is undesirable.  I don’t need the output, I only need to check that it’s valid lua.

 

Thanks