c++写的一个脚本解释器
源代码在线查看: object.h
软件大小: |
715 K |
上传用户: |
managerliu123 |
|
|
关键词: |
脚本
|
下载地址: |
免注册下载 普通下载
|
|
#ifndef __OBJECT_H_ #define __OBJECT_H_ #include #define OBJECT(obj) ((Object*) obj) typedef struct _Object Object; typedef void (*ObjectDestroy) (Object* self); struct _Object { int refcount; ObjectDestroy destroy; }; Object* object_new (); void object_destroy (Object* self); void object_init_object (Object* self, ObjectDestroy p_destroy); Object* object_addref (Object* self); void object_unref (Object* self); #endif