From 78191ced69acb9897f029e554b37cfac776be9fa Mon Sep 17 00:00:00 2001 From: gambas Date: Mon, 14 Jun 2021 22:37:53 +0200 Subject: [PATCH] Remove the new Size, DataSize and StaticSize properties of the Class class. Use SizeOf() instead of DataSize. [INTERPRETER] * NEW: Remove the new Size, DataSize and StaticSize properties of the Class class. Use SizeOf() instead of DataSize. --- main/gbx/gbx_c_class.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main/gbx/gbx_c_class.c b/main/gbx/gbx_c_class.c index b71ad559c..4253ccbc0 100644 --- a/main/gbx/gbx_c_class.c +++ b/main/gbx/gbx_c_class.c @@ -384,7 +384,7 @@ BEGIN_METHOD(Class_New, GB_OBJECT params) END_METHOD -BEGIN_PROPERTY(Class_Size) +/*BEGIN_PROPERTY(Class_Size) GB_ReturnInteger(OBJECT(CLASS)->size); @@ -403,7 +403,7 @@ BEGIN_PROPERTY(Class_StaticSize) GB_ReturnInteger(OBJECT(CLASS)->size_stat); -END_PROPERTY +END_PROPERTY*/ //---- Symbol ------------------------------------------------------------- @@ -982,9 +982,9 @@ GB_DESC NATIVE_Class[] = GB_METHOD("AutoCreate", "o", Class_AutoCreate, NULL), GB_METHOD("New", "o", Class_New, "[(Arguments)Array;]"), GB_METHOD("Exist", "b", Class_Exist, "(Symbol)s"), - GB_PROPERTY_READ("Size", "i", Class_Size), + /*GB_PROPERTY_READ("Size", "i", Class_Size), GB_PROPERTY_READ("DataSize", "i", Class_DataSize), - GB_PROPERTY_READ("StaticSize", "i", Class_StaticSize), + GB_PROPERTY_READ("StaticSize", "i", Class_StaticSize),*/ GB_CONSTANT("Variable", "i", 1), GB_CONSTANT("Property", "i", 2),