mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-12 17:24:09 +00:00
FFI: Ignore empty statements in ffi.cdef().
This commit is contained in:
parent
ba4917b71b
commit
d050b2fff5
@ -1728,6 +1728,10 @@ static void cp_decl_multi(CPState *cp)
|
||||
while (cp->tok != CTOK_EOF) {
|
||||
CPDecl decl;
|
||||
CPscl scl;
|
||||
if (cp_opt(cp, ';')) { /* Skip empty statements. */
|
||||
first = 0;
|
||||
continue;
|
||||
}
|
||||
if (cp->tok == '#') { /* Workaround, since we have no preprocessor, yet. */
|
||||
BCLine pragmaline = cp->linenumber;
|
||||
if (!(cp_next(cp) == CTOK_IDENT &&
|
||||
|
Loading…
Reference in New Issue
Block a user