File: single.c

package info (click to toggle)
pd-lib-builder 0.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 560 kB
  • sloc: ansic: 206; makefile: 139; sh: 117; cpp: 19
file content (13 lines) | stat: -rw-r--r-- 395 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <m_pd.h>
t_class*single_class;
static void single_float(t_object*x, t_float f1) {
  pd_error(x, "%s got %f", __FUNCTION__, f1);
}
static void*single_new(void) {
  return pd_new(single_class);
}
void single_setup(void) {
  post("%s", __FUNCTION__);
  single_class = class_new(gensym("single"), single_new, 0, sizeof(t_object), 0, A_NULL);
  class_addfloat(single_class, single_float);
}