src/main/c/jnlua.c
static int checkrealindex(lua_State *L, int index) {
	int top;

	top = lua_gettop(L);
	if (index <= 0) {
		index = top + index + 1;
	}
	return checkarg(index >= 1 && index <= top, "illegal index");
}
/* Checks if an index is valid, ignoring pseudo indexes. */
Checks if an index is valid, ignoring pseudo indexes.
Checks if an index is valid ignoring pseudo indexes .
static int checkrealindex(lua_State *L, int index) {
	int top;
	top = lua_gettop(L);
	if (index <= 0) {
		index = top + index + 1;
	}
	return checkarg(index >= 1 && index <= top, "illegal index");
}
static int checkrealindex ( lua_State * L , int index ) { int top ; top = lua_gettop ( L ) ; if ( index <= 0 ) { index = top + index + 1 ; } return checkarg ( index >= 1 && index <= top , " " ) ; }
Checks if an index is valid, ignoring pseudo indexes.
Checks if an index is valid ignoring pseudo indexes .