Skip to content

Commit

Permalink
add typedefs for methods that return a pointer instead of void
Browse files Browse the repository at this point in the history
  • Loading branch information
claudeha committed Jan 8, 2019
1 parent cfdd254 commit 545cd7b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/m_imp.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ typedef void (*t_symbolmethod)(t_pd *x, t_symbol *s);
typedef void (*t_listmethod)(t_pd *x, t_symbol *s, int argc, t_atom *argv);
typedef void (*t_anymethod)(t_pd *x, t_symbol *s, int argc, t_atom *argv);

typedef void* (*t_bangmethodr)(t_pd *x);
typedef void* (*t_pointermethodr)(t_pd *x, t_gpointer *gp);
typedef void* (*t_floatmethodr)(t_pd *x, t_float f);
typedef void* (*t_symbolmethodr)(t_pd *x, t_symbol *s);
typedef void* (*t_listmethodr)(t_pd *x, t_symbol *s, int argc, t_atom *argv);
typedef void* (*t_anymethodr)(t_pd *x, t_symbol *s, int argc, t_atom *argv);

struct _class
{
t_symbol *c_name; /* name (mostly for error reporting) */
Expand Down

0 comments on commit 545cd7b

Please sign in to comment.