mirror of
https://gitlab.com/Syping/luaengineapp.git
synced 2024-12-22 11:55:29 +01:00
fix eIOBytesAvailable and eIOCanReadLine
This commit is contained in:
parent
1e2c36b4be
commit
d6117ee54a
1 changed files with 2 additions and 2 deletions
|
@ -97,7 +97,7 @@ int LuaEngineIO::checkFileExists(lua_State *L_p)
|
||||||
|
|
||||||
int LuaEngineIO::eIOBytesAvailable(lua_State *L_p)
|
int LuaEngineIO::eIOBytesAvailable(lua_State *L_p)
|
||||||
{
|
{
|
||||||
if (getArgumentCount(L_p) >= 2) {
|
if (getArgumentCount(L_p) >= 1) {
|
||||||
void *pointer = getPointer(L_p, 1);
|
void *pointer = getPointer(L_p, 1);
|
||||||
if (pointer != NULL) {
|
if (pointer != NULL) {
|
||||||
if (((QObject*)pointer)->inherits("QIODevice")) {
|
if (((QObject*)pointer)->inherits("QIODevice")) {
|
||||||
|
@ -111,7 +111,7 @@ int LuaEngineIO::eIOBytesAvailable(lua_State *L_p)
|
||||||
|
|
||||||
int LuaEngineIO::eIOCanReadLine(lua_State *L_p)
|
int LuaEngineIO::eIOCanReadLine(lua_State *L_p)
|
||||||
{
|
{
|
||||||
if (getArgumentCount(L_p) >= 2) {
|
if (getArgumentCount(L_p) >= 1) {
|
||||||
void *pointer = getPointer(L_p, 1);
|
void *pointer = getPointer(L_p, 1);
|
||||||
if (pointer != NULL) {
|
if (pointer != NULL) {
|
||||||
if (((QObject*)pointer)->inherits("QIODevice")) {
|
if (((QObject*)pointer)->inherits("QIODevice")) {
|
||||||
|
|
Loading…
Reference in a new issue