??C????????????????
???????????? ???????[ 2013/7/11 10:37:14 ] ????????
????????lw_oopc_kc.h ?????????
/* lw_oopc_kc.h */
#ifndef _LW_OOPC_H
#define _LW_OOPC_H
#include <stdlib.h>
#define CLASS(type) typedef struct type type; struct type
#ifndef LW_OOPC_PURE_STATIC
#ifndef LW_OOPC_STATIC
#ifndef LW_OOPC_DYNAMIC
#define CTOR(type)
void* type##Setting(type*);
void* type##New()
{
struct type *t;
t = (struct type *)malloc(sizeof(struct type));
return type##Setting(t);
}
void* type##Setting(type *t)
{
#else
#define CTOR(type)
void* type##New()
{
struct type *t;
t = (struct type *)malloc(sizeof(struct type));
#endif
#else
#define CTOR(type)
void* type##Setting(type *t)
{
#endif
#endif
#define END_CTOR return (void*)t; }
#define FUNCTION_SETTING(f1?? f2) t->f1 = f2;
#define IMPLEMENTS(type) type type
#define INTERFACE(type) typedef struct type type; struct type
#endif
/* end */
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11