File: externalmodule-template.h

package info (click to toggle)
python-pyo 1.0.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 52,332 kB
  • sloc: python: 135,133; ansic: 127,822; javascript: 16,116; sh: 395; makefile: 388; cpp: 242
file content (14 lines) | stat: -rw-r--r-- 621 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/**************************************************
Declare each external object type as "extern" to be sure
that the pyomodule will be aware of their existence.
**************************************************/
extern PyTypeObject GainType;

/**********************************************************
This macro is called at runtime to include external objects
in "_pyo" module. Add a line calling "module_add_object"
with your object's name and type for each external object.
**********************************************************/
#define EXTERNAL_OBJECTS \
    module_add_object(m, "Gain_base", &GainType); \