diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2012-10-16 18:57:48 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2012-10-16 18:57:48 +0000 |
commit | f6900774ddec90855dd3aaa1b5bf1a6af4b28f21 (patch) | |
tree | bcf3a36088cf84022e70568caf32e1a99131e80f | |
parent | 06e7b88041737f330d28d319013da1659a29fe95 (diff) |
make deprecation warning at level 3 and only on setup()
svn path=/branches/pd-extended/0.43/externals/oscx/; revision=16401
-rw-r--r-- | OSC.c | 3 | ||||
-rw-r--r-- | OSCroute.c | 2 | ||||
-rw-r--r-- | dumpOSC.c | 2 | ||||
-rw-r--r-- | sendOSC.c | 2 |
4 files changed, 4 insertions, 5 deletions
@@ -41,7 +41,6 @@ static t_class* OSC_class; static void* OSC_new(t_symbol* s) {
t_OSC *x = (t_OSC *)pd_new(OSC_class);
- error("OSCx is deprecated! consider switching to mrpeach's osc & net objects");
return (x);
}
@@ -68,5 +67,5 @@ OSC_API void OSC_setup(void) { post(" S : original code by matt wright, pd hakcs cxc, Win32-port raf@interaccess.com");
post(" C: ver: "VERSION ", compiled: "__DATE__ " -- adapted by piotr@majdak.com");
- error("OSCx is deprecated - ask IOhannes m zmoelnig why...");
+ logpost(NULL, 3, "OSCx is deprecated! consider switching to mrpeach's osc & net objects");
}
@@ -150,7 +150,7 @@ void OSCroute_setup(void) { post("OSCroute object version " OSC_ROUTE_VERSION " by Matt Wright. pd: jdl Win32 raf.");
post("OSCroute Copyright © 1999 Regents of the Univ. of California. All Rights Reserved.");
- error("[OSCroute]: OSCx is deprecated! \n\tConsider switching to mrpeach's [routeOSC]");
+ logpost(NULL, 3, "[OSCroute]: OSCx is deprecated! \n\tConsider switching to mrpeach's [routeOSC]");
}
@@ -386,7 +386,7 @@ void dumpOSC_setup(void) sizeof(t_dumpOSC), CLASS_NOINLET, A_GIMME, 0);
class_sethelpsymbol(dumpOSC_class, gensym("dumpOSC-help.pd"));
- error("[dumpOSC]: OSCx is deprecated! \n\tConsider switching to mrpeach's [unpackOSC] and [udpreceive]");
+ logpost(NULL, 3, "[dumpOSC]: OSCx is deprecated! \n\tConsider switching to mrpeach's [unpackOSC] and [udpreceive]");
}
@@ -390,7 +390,7 @@ void sendOSC_setup(void) gensym("]"),
0, 0);
class_sethelpsymbol(sendOSC_class, gensym("sendOSC-help.pd"));
- error("[sendOSC]: OSCx is deprecated! \n\tConsider switching to mrpeach's [packOSC] and [udpsend]");
+ logpost(NULL, 3, "[sendOSC]: OSCx is deprecated! \n\tConsider switching to mrpeach's [packOSC] and [udpsend]");
}
/* Exit status codes:
|