Beispiel #1
0
static void LoadBlock(LoadState* S, void* b, size_t size)
{
 size_t r=luaZ_read(S->Z,b,size);
 IF (r!=0, "unexpected end");
}
Beispiel #2
0
static void LoadBlock(LoadState* S, void* b, size_t size)
{
 if (luaZ_read(S->Z,b,size)!=0) error(S,"truncated");
}
Beispiel #3
0
static void ezread (LoadState* S, void* b, int n)
{
    int r=luaZ_read(S->Z,b,n);
    if (r!=0) unexpectedEOZ(S);
}