misc/libphyslayer/physfslualoader.c
changeset 13537 ecdf6ce2301e
parent 9991 3858d99476f5
equal deleted inserted replaced
13536:2694e8449a2a 13537:ecdf6ce2301e
     2 #include "physfs.h"
     2 #include "physfs.h"
     3 
     3 
     4 #include "physfscompat.h"
     4 #include "physfscompat.h"
     5 
     5 
     6 #define BUFSIZE 1024
     6 #define BUFSIZE 1024
       
     7 #define UNUSED(x) (void)(x)
     7 
     8 
     8 void *physfsReaderBuffer;
     9 void *physfsReaderBuffer;
     9 
    10 
    10 PHYSFS_DECL const char * physfsReader(lua_State *L, PHYSFS_File *f, size_t *size)
    11 PHYSFS_DECL const char * physfsReader(lua_State *L, PHYSFS_File *f, size_t *size)
    11 {
    12 {
       
    13     UNUSED(L);
    12 
    14 
    13     if(PHYSFS_eof(f))
    15     if(PHYSFS_eof(f))
    14     {
    16     {
    15         return NULL;
    17         return NULL;
    16     }
    18     }