diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2006-09-22 09:20:21 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2006-09-22 09:20:21 +0000 |
commit | 84de6b7d71cc72c7c1e52edbad02563bbb3e0867 (patch) | |
tree | b4ed962f51145224b3d308e36635020e4234acc3 /externals/grill/flext/tutorial/adv2 | |
parent | aa22e0d3aa3dc961fd1076629cfdbd8a43aac101 (diff) |
small fixes for tutorial examples
fixed help methods
fixed typos, dates, contact info
added typed flext::NewAligned
svn path=/trunk/; revision=6000
Diffstat (limited to 'externals/grill/flext/tutorial/adv2')
-rw-r--r-- | externals/grill/flext/tutorial/adv2/main.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/externals/grill/flext/tutorial/adv2/main.cpp b/externals/grill/flext/tutorial/adv2/main.cpp index 9174d3b1..6558f5d1 100644 --- a/externals/grill/flext/tutorial/adv2/main.cpp +++ b/externals/grill/flext/tutorial/adv2/main.cpp @@ -1,7 +1,7 @@ /* flext tutorial - advanced 2 -Copyright (c) 2002,2003 Thomas Grill (xovo@gmx.net) +Copyright (c) 2002-2006 Thomas Grill (gr@grrrr.org) For information on usage and redistribution, and for a DISCLAIMER OF ALL WARRANTIES, see the file, "license.txt," in this distribution. @@ -22,8 +22,8 @@ All objects [adv2] will share the same database, saving memory. #include <flext.h> // check for appropriate flext version -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 401) -#error You need at least flext version 0.4.1 +#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 500) +#error You need at least flext version 0.5.0 #endif class adv2: @@ -40,7 +40,7 @@ protected: void m_tag_and_int(int i); void m_sym(t_symbol *s); - virtual void m_help(); + void m_help(); private: // define the _static_ class setup function @@ -49,6 +49,7 @@ private: FLEXT_CALLBACK(m_tag) FLEXT_CALLBACK_I(m_tag_and_int) FLEXT_CALLBACK_S(m_sym) + FLEXT_CALLBACK(m_help) }; // instantiate the class (constructor takes no arguments) @@ -72,6 +73,8 @@ void adv2::setup(t_classid c) FLEXT_CADDMETHOD_I(c,0,"hula",m_tag_and_int); FLEXT_CADDMETHOD(c,0,m_sym); + + FLEXT_CADDMETHOD_(c,0,"help",m_help); } void adv2::m_tag() |