1
1

updated OBJ_CLASS_INIT macro/renamed to OBJ_CLASS_INSTANCE

This commit was SVN r783.
Этот коммит содержится в:
Tim Woodall 2004-02-13 17:10:16 +00:00
родитель 31708648f1
Коммит fd9994a31d

Просмотреть файл

@ -177,14 +177,19 @@ struct lam_object_t {
/**
* Static initializer for a class descriptor
*
* @param NAME Symbolic name for class
* @param PARENT Type of parent class
* @param NAME Name of class
* @param PARENT Name of parent class
* @param CONSTRUCTOR Pointer to constructor
* @param DESTRUCTOR Pointer to destructor
* @return Static initializer string
*/
#define OBJ_CLASS_INIT(NAME, PARENT, CONSTRUCTOR, DESTRUCTOR) \
{ NAME, PARENT, CONSTRUCTOR, DESTRUCTOR, 0, 0, NULL, NULL }
#define OBJ_CLASS_INSTANCE(NAME, PARENT, CONSTRUCTOR, DESTRUCTOR) \
lam_class_t NAME ## _class = { \
# NAME, \
OBJ_CLASS(PARENT), \
(lam_construct_t)CONSTRUCTOR, \
(lam_destruct_t)DESTRUCTOR, \
0, 0, NULL, NULL \
}
/**