diff options
author | N.N. <krzyszcz@users.sourceforge.net> | 2004-12-08 15:45:27 +0000 |
---|---|---|
committer | N.N. <krzyszcz@users.sourceforge.net> | 2004-12-08 15:45:27 +0000 |
commit | 155fa2c04c7e415803e1546dcde0a47442eef4b3 (patch) | |
tree | 94a1714fee23703bddef850e7b5acb60a9c39631 /cyclone/shadow | |
parent | d5a39ff6469f8762218c00a34f4b0a120a56332b (diff) |
*** empty log message ***
svn path=/trunk/externals/miXed/; revision=2361
Diffstat (limited to 'cyclone/shadow')
-rw-r--r-- | cyclone/shadow/maxmode.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/cyclone/shadow/maxmode.c b/cyclone/shadow/maxmode.c new file mode 100644 index 0000000..f90d990 --- /dev/null +++ b/cyclone/shadow/maxmode.c @@ -0,0 +1,21 @@ +/* Copyright (c) 2004 krzYszcz and others. + * For information on usage and redistribution, and for a DISCLAIMER OF ALL + * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ + +#include "m_pd.h" +#include "common/loud.h" +#include "unstable/loader.h" + +void maxmode_setup(void) +{ + shared_setmaxcompatibility(); + if (zgetfn(&pd_objectmaker, gensym("cyclone"))) + loud_warning(0, "maxmode", "cyclone is already loaded"); + else + { + if (unstable_load_lib("", "cyclone") == LOADER_NOFILE) + loud_error(0, "cyclone library is missing"); + else if (!zgetfn(&pd_objectmaker, gensym("cyclone"))) + loud_error(0, "miXed/Pd version mismatch"); + } +} |