'writestring' changed into a configurable macro

This commit is contained in:
Roberto Ierusalimschy
2009-02-07 10:23:15 -02:00
parent 53db607963
commit 5d3cc5def8
2 changed files with 12 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: luaconf.h,v 1.99 2008/07/11 17:50:31 roberto Exp roberto $
** $Id: luaconf.h,v 1.100 2008/07/18 19:58:10 roberto Exp roberto $
** Configuration file for Lua
** See Copyright Notice in lua.h
*/
@@ -220,6 +220,13 @@
#define LUA_IDSIZE 60
/*
@@ luai_writestring defines how 'print' prints its results.
** CHANGE it if your system does not have a useful stdout.
*/
#define luai_writestring(s,l) fwrite((s), sizeof(char), (l), stdout)
/*
** {==================================================================
** Stand-alone configuration