/* ex: set ro ft=c:
 * !!!!!!!   DO NOT EDIT THIS FILE   !!!!!!!
 *
 * This file is generated automatically from './src/vm/parrot/pmc/nqplexinfo.pmc'
 * by ../../../usr/lib/parrot/5.4.0/tools/build/pmc2c.pl.
 *
 * Any changes made here will be lost!
 *
 */

/* HEADERIZER HFILE: none */
/* HEADERIZER STOP */


#ifndef PARROT_PMC_NQPLEXINFO_H_GUARD
#define PARROT_PMC_NQPLEXINFO_H_GUARD

#define PARROT_IN_EXTENSION
PARROT_DYNEXT_EXPORT VTABLE* Parrot_NQPLexInfo_get_vtable_pointer(PARROT_INTERP);
PARROT_DYNEXT_EXPORT void    Parrot_NQPLexInfo_class_init(PARROT_INTERP, int, int);
PARROT_DYNEXT_EXPORT VTABLE* Parrot_NQPLexInfo_update_vtable(ARGMOD(VTABLE*));
PARROT_DYNEXT_EXPORT VTABLE* Parrot_NQPLexInfo_ro_update_vtable(ARGMOD(VTABLE*));
PARROT_DYNEXT_EXPORT VTABLE* Parrot_NQPLexInfo_get_vtable(PARROT_INTERP);
PARROT_DYNEXT_EXPORT VTABLE* Parrot_NQPLexInfo_ro_get_vtable(PARROT_INTERP);
PARROT_DYNEXT_EXPORT PMC*    Parrot_NQPLexInfo_get_mro(PARROT_INTERP, ARGMOD(PMC* mro));
PARROT_DYNEXT_EXPORT Hash*   Parrot_NQPLexInfo_get_isa(PARROT_INTERP, ARGMOD_NULLOK(Hash* isa));

/* NQPLexInfo PMC's underlying struct. */
typedef struct Parrot_NQPLexInfo_attributes {
    PMC * static_code;
    PMC * name_to_register_map;
    PMC * static_values;
    PMC * static_slots_cache;
    PMC * static_values_cache;
} Parrot_NQPLexInfo_attributes;

/* Macro to access underlying structure of a NQPLexInfo PMC. */
#define PARROT_NQPLEXINFO(o) ((Parrot_NQPLexInfo_attributes *) PMC_data(o))


/* Generated macro accessors for 'static_code' attribute of NQPLexInfo PMC. */
#define GETATTR_NQPLexInfo_static_code(interp, pmc, dest) \
    do { \
        if (!PObj_is_object_TEST(pmc)) { \
            (dest) = ((Parrot_NQPLexInfo_attributes *)PMC_data(pmc))->static_code; \
        } \
        else { \
            (dest) = VTABLE_get_attr_str(interp, \
                              pmc, Parrot_str_new_constant(interp, "static_code")); \
        } \
    } while (0)

#define SETATTR_NQPLexInfo_static_code(interp, pmc, value) \
    do { \
        if (PObj_is_object_TEST(pmc)) { \
            VTABLE_set_attr_str(interp, pmc, \
                              Parrot_str_new_constant(interp, "static_code"), value); \
        } \
        else \
            ((Parrot_NQPLexInfo_attributes *)PMC_data(pmc))->static_code = (value); \
    } while (0)


/* Generated macro accessors for 'name_to_register_map' attribute of NQPLexInfo PMC. */
#define GETATTR_NQPLexInfo_name_to_register_map(interp, pmc, dest) \
    do { \
        if (!PObj_is_object_TEST(pmc)) { \
            (dest) = ((Parrot_NQPLexInfo_attributes *)PMC_data(pmc))->name_to_register_map; \
        } \
        else { \
            (dest) = VTABLE_get_attr_str(interp, \
                              pmc, Parrot_str_new_constant(interp, "name_to_register_map")); \
        } \
    } while (0)

#define SETATTR_NQPLexInfo_name_to_register_map(interp, pmc, value) \
    do { \
        if (PObj_is_object_TEST(pmc)) { \
            VTABLE_set_attr_str(interp, pmc, \
                              Parrot_str_new_constant(interp, "name_to_register_map"), value); \
        } \
        else \
            ((Parrot_NQPLexInfo_attributes *)PMC_data(pmc))->name_to_register_map = (value); \
    } while (0)


/* Generated macro accessors for 'static_values' attribute of NQPLexInfo PMC. */
#define GETATTR_NQPLexInfo_static_values(interp, pmc, dest) \
    do { \
        if (!PObj_is_object_TEST(pmc)) { \
            (dest) = ((Parrot_NQPLexInfo_attributes *)PMC_data(pmc))->static_values; \
        } \
        else { \
            (dest) = VTABLE_get_attr_str(interp, \
                              pmc, Parrot_str_new_constant(interp, "static_values")); \
        } \
    } while (0)

#define SETATTR_NQPLexInfo_static_values(interp, pmc, value) \
    do { \
        if (PObj_is_object_TEST(pmc)) { \
            VTABLE_set_attr_str(interp, pmc, \
                              Parrot_str_new_constant(interp, "static_values"), value); \
        } \
        else \
            ((Parrot_NQPLexInfo_attributes *)PMC_data(pmc))->static_values = (value); \
    } while (0)


/* Generated macro accessors for 'static_slots_cache' attribute of NQPLexInfo PMC. */
#define GETATTR_NQPLexInfo_static_slots_cache(interp, pmc, dest) \
    do { \
        if (!PObj_is_object_TEST(pmc)) { \
            (dest) = ((Parrot_NQPLexInfo_attributes *)PMC_data(pmc))->static_slots_cache; \
        } \
        else { \
            (dest) = VTABLE_get_attr_str(interp, \
                              pmc, Parrot_str_new_constant(interp, "static_slots_cache")); \
        } \
    } while (0)

#define SETATTR_NQPLexInfo_static_slots_cache(interp, pmc, value) \
    do { \
        if (PObj_is_object_TEST(pmc)) { \
            VTABLE_set_attr_str(interp, pmc, \
                              Parrot_str_new_constant(interp, "static_slots_cache"), value); \
        } \
        else \
            ((Parrot_NQPLexInfo_attributes *)PMC_data(pmc))->static_slots_cache = (value); \
    } while (0)


/* Generated macro accessors for 'static_values_cache' attribute of NQPLexInfo PMC. */
#define GETATTR_NQPLexInfo_static_values_cache(interp, pmc, dest) \
    do { \
        if (!PObj_is_object_TEST(pmc)) { \
            (dest) = ((Parrot_NQPLexInfo_attributes *)PMC_data(pmc))->static_values_cache; \
        } \
        else { \
            (dest) = VTABLE_get_attr_str(interp, \
                              pmc, Parrot_str_new_constant(interp, "static_values_cache")); \
        } \
    } while (0)

#define SETATTR_NQPLexInfo_static_values_cache(interp, pmc, value) \
    do { \
        if (PObj_is_object_TEST(pmc)) { \
            VTABLE_set_attr_str(interp, pmc, \
                              Parrot_str_new_constant(interp, "static_values_cache"), value); \
        } \
        else \
            ((Parrot_NQPLexInfo_attributes *)PMC_data(pmc))->static_values_cache = (value); \
    } while (0)


PARROT_DYNEXT_EXPORT Parrot_PMC Parrot_lib_nqplexinfo_load(PARROT_INTERP);

#ifndef PARROT_DYNPMC_CLASS_LOAD
PARROT_DATA INTVAL dynpmc_class_NQPLexInfo;
#endif

#endif /* PARROT_PMC_NQPLEXINFO_H_GUARD */

/*
 * Local variables:
 *   c-file-style: "parrot"
 * End:
 * vim: expandtab shiftwidth=4:
 */

