summaryrefslogtreecommitdiffstats
path: root/Include/funcobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/funcobject.h')
-rw-r--r--Include/funcobject.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Include/funcobject.h b/Include/funcobject.h
index d24600d..e4ed269 100644
--- a/Include/funcobject.h
+++ b/Include/funcobject.h
@@ -24,6 +24,13 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/* Function object interface */
+typedef struct {
+ OB_HEAD
+ object *func_code;
+ object *func_globals;
+ object *func_name;
+} funcobject;
+
extern typeobject Functype;
#define is_funcobject(op) ((op)->ob_type == &Functype)