aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Peach <mrpeach@users.sourceforge.net>2011-09-28 16:15:06 +0000
committerIOhannes m zmölnig <zmoelnig@iem.at>2015-10-14 14:28:31 +0200
commita92205679aed1880bf958244811474210a8c2d9b (patch)
tree1d52ba61bbadd53e1926e06d7be46d25032c80ec /src
parente6478d5a3b758a7cb13070c1d893d91ea15296fd (diff)
Applied Hans' patch to limit startup boilerplate visibility to log level >=3, if logpost() is available.
svn path=/trunk/externals/loaders/pdlua/; revision=15376
Diffstat (limited to 'src')
-rw-r--r--src/pdlua.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/pdlua.c b/src/pdlua.c
index b80215c..519cd7f 100644
--- a/src/pdlua.c
+++ b/src/pdlua.c
@@ -1356,10 +1356,23 @@ EXTERN void pdlua_setup(void)
t_pdlua_readerdata reader;
int fd;
int result;
+ char* pdluaver = "pdlua 0.6 (GPL) 2011 Martin Peach, based on";
+ char* luaver = "lua 0.6~svn (GPL) 2008 Claude Heiland-Allen <claudiusmaximus@goto10.org>";
+ char compiled[MAXPDSTRING];
- post("pdlua 0.6 (GPL) 2011 Martin Peach, based on");
- post("lua 0.6~svn (GPL) 2008 Claude Heiland-Allen <claudiusmaximus@goto10.org>");
- post("pdlua: compiled for pd-%d.%d on %s %s", PD_MAJOR_VERSION, PD_MINOR_VERSION, __DATE__, __TIME__);
+ snprintf(compiled, MAXPDSTRING, "pdlua: compiled for pd-%d.%d on %s %s",
+ PD_MAJOR_VERSION, PD_MINOR_VERSION, __DATE__, __TIME__);
+
+
+#if PD_MAJOR_VERSION==0 && PD_MINOR_VERSION<43
+ post(pdluaver);
+ post(luaver);
+ post(compiled);
+#else
+ logpost(NULL, 3, pdluaver);
+ logpost(NULL, 3, luaver);
+ logpost(NULL, 3, compiled);
+#endif
pdlua_proxyinlet_setup();
#ifdef PDLUA_DEBUG
post("pdlua pdlua_proxyinlet_setup done");