FFI: Add support for parameterized C types.

This commit is contained in:
Mike Pall
2012-06-14 19:54:07 +02:00
parent ca6bf2d9a4
commit 946c7418d5
4 changed files with 57 additions and 10 deletions

View File

@@ -48,6 +48,7 @@ typedef struct CPState {
SBuf sb; /* String buffer for tokens. */
lua_State *L; /* Lua state. */
CTState *cts; /* C type state. */
TValue *param; /* C type parameters. */
const char *srcname; /* Current source name. */
BCLine linenumber; /* Input line counter. */
int depth; /* Recursive declaration depth. */