aboutsummaryrefslogtreecommitdiff
path: root/llimits.h
diff options
context:
space:
mode:
Diffstat (limited to 'llimits.h')
-rw-r--r--llimits.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/llimits.h b/llimits.h
index 2954d2ef..57e7bed7 100644
--- a/llimits.h
+++ b/llimits.h
@@ -244,4 +244,29 @@ typedef unsigned long l_uint32;
244#endif 244#endif
245 245
246 246
247/*
248** {==================================================================
249** "Abstraction Layer" for basic report of messages and errors
250** ===================================================================
251*/
252
253/* print a string */
254#if !defined(lua_writestring)
255#define lua_writestring(s,l) fwrite((s), sizeof(char), (l), stdout)
247#endif 256#endif
257
258/* print a newline and flush the output */
259#if !defined(lua_writeline)
260#define lua_writeline() (lua_writestring("\n", 1), fflush(stdout))
261#endif
262
263/* print an error message */
264#if !defined(lua_writestringerror)
265#define lua_writestringerror(s,p) \
266 (fprintf(stderr, (s), (p)), fflush(stderr))
267#endif
268
269/* }================================================================== */
270
271#endif
272