aboutsummaryrefslogtreecommitdiff
path: root/lauxlib.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-06-21 12:29:08 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-06-21 12:29:08 -0300
commite24ce8c2b322226bbc211e57f301c265a2622c4b (patch)
tree875afb43726cadefdf6b1ea90ed8e8fb10db1a44 /lauxlib.h
parenta08d82eb132bfd9db5b91e0d5ebcb81d7b26dcd0 (diff)
downloadlua-e24ce8c2b322226bbc211e57f301c265a2622c4b.tar.gz
lua-e24ce8c2b322226bbc211e57f301c265a2622c4b.tar.bz2
lua-e24ce8c2b322226bbc211e57f301c265a2622c4b.zip
lua_writestring & co. moved to llimits.h
They don't need to be visible by clients of Lua.
Diffstat (limited to 'lauxlib.h')
-rw-r--r--lauxlib.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/lauxlib.h b/lauxlib.h
index 6c5ecbb7..4be008b9 100644
--- a/lauxlib.h
+++ b/lauxlib.h
@@ -236,30 +236,6 @@ typedef struct luaL_Stream {
236 236
237/* }====================================================== */ 237/* }====================================================== */
238 238
239/*
240** {==================================================================
241** "Abstraction Layer" for basic report of messages and errors
242** ===================================================================
243*/
244
245/* print a string */
246#if !defined(lua_writestring)
247#define lua_writestring(s,l) fwrite((s), sizeof(char), (l), stdout)
248#endif
249
250/* print a newline and flush the output */
251#if !defined(lua_writeline)
252#define lua_writeline() (lua_writestring("\n", 1), fflush(stdout))
253#endif
254
255/* print an error message */
256#if !defined(lua_writestringerror)
257#define lua_writestringerror(s,p) \
258 (fprintf(stderr, (s), (p)), fflush(stderr))
259#endif
260
261/* }================================================================== */
262
263 239
264/* 240/*
265** {============================================================ 241** {============================================================