|
|
@ -236,30 +236,6 @@ typedef struct luaL_Stream { |
|
|
|
|
|
|
|
/* }====================================================== */ |
|
|
|
|
|
|
|
/*
|
|
|
|
** {================================================================== |
|
|
|
** "Abstraction Layer" for basic report of messages and errors |
|
|
|
** =================================================================== |
|
|
|
*/ |
|
|
|
|
|
|
|
/* print a string */ |
|
|
|
#if !defined(lua_writestring) |
|
|
|
#define lua_writestring(s,l) fwrite((s), sizeof(char), (l), stdout) |
|
|
|
#endif |
|
|
|
|
|
|
|
/* print a newline and flush the output */ |
|
|
|
#if !defined(lua_writeline) |
|
|
|
#define lua_writeline() (lua_writestring("\n", 1), fflush(stdout)) |
|
|
|
#endif |
|
|
|
|
|
|
|
/* print an error message */ |
|
|
|
#if !defined(lua_writestringerror) |
|
|
|
#define lua_writestringerror(s,p) \ |
|
|
|
(fprintf(stderr, (s), (p)), fflush(stderr)) |
|
|
|
#endif |
|
|
|
|
|
|
|
/* }================================================================== */ |
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
** {============================================================ |
|
|
|