Explorar o código

Added extra slot to BBClass.

woollybah %!s(int64=10) %!d(string=hai) anos
pai
achega
17649c4b9a

+ 1 - 0
blitz.mod/blitz_array.c

@@ -16,6 +16,7 @@ BBClass bbArrayClass={
 	bbArrayFree,	//free
 	&debugScope,	//DebugScope
 	0,			//instance_size
+	0,          //extra
 	0,			//ctor
 	0,			//dtor
 	

+ 1 - 0
blitz.mod/blitz_object.c

@@ -17,6 +17,7 @@ BBClass bbObjectClass={
 	bbObjectFree,   //free
 	&debugScope,	//debug_scope
 	8,				//instance_size
+	0,             //extra
 	
 	bbObjectCtor,
 	bbObjectDtor,

+ 1 - 0
blitz.mod/blitz_object.h

@@ -20,6 +20,7 @@ struct BBClass{
 	BBDebugScope*debug_scope;
 
 	int		instance_size;
+	void*   extra;
 
 	void		(*ctor)( BBObject *o );
 	void		(*dtor)( BBObject *o );

+ 1 - 0
blitz.mod/blitz_string.c

@@ -18,6 +18,7 @@ BBClass bbStringClass={
 	bbStringFree,   //free
 	&debugScope,	//DebugScope
 	0,				//instance_size
+	0,              //extra
 	0,				//ctor
 	0,				//dtor