Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef struct ILP_Object {
- struct ILP_Class* _class;
- union {
- unsigned char asBoolean;
- int asInteger;
- double asFloat;
- struct asString {
- int _size;
- char asCharacter[1];
- } asString;
- /** my tab struct **/
- struct asIntTab{
- int _size;
- int asTab[1];
- }asIntTab;
- /** my tab struct end **/
- struct asException {
- char message[ILP_EXCEPTION_BUFFER_LENGTH];
- struct ILP_Object* culprit[ILP_EXCEPTION_CULPRIT_LENGTH];
- } asException;
- struct asClass {
- struct ILP_Class* super;
- char* name;
- int fields_count;
- struct ILP_Field* last_field;
- int methods_count;
- ILP_general_function method[1];
- } asClass;
- struct asMethod {
- struct ILP_Class* class_defining;
- char* name;
- short arity;
- short index;
- } asMethod;
- struct asField {
- struct ILP_Class* defining_class;
- struct ILP_Field* previous_field;
- char* name;
- short offset;
- } asField;
- struct asInstance {
- struct ILP_Object* field[1];
- } asInstance;
- struct asClosure {
- ILP_general_function function;
- short arity;
- struct ILP_Object* closed_variables[1];
- } asClosure;
- struct asBox {
- struct ILP_Object* value;
- } asBox;
- } _content;
- } *ILP_Object;
Add Comment
Please, Sign In to add comment