Skip to content
This repository was archived by the owner on Feb 3, 2021. It is now read-only.

Commit 059f70e

Browse files
committed
Add get_storage_spec to REPR API.
1 parent feb7c9c commit 059f70e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/metamodel/rakudoobject.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#ifndef RAKUDOOBJECT_H_GUARD
55
#define RAKUDOOBJECT_H_GUARD
66

7+
#include "storage_spec.h"
8+
79
/* The commonalities shared between all Rakudo objects, no matter what the
810
* REPR is. This struct should be placed as the first thing in the object
911
* struct used by all representations. */
@@ -127,6 +129,9 @@ typedef struct {
127129

128130
/* This Parrot-specific addition to the API is used to free a REPR instance. */
129131
void (*gc_free_repr) (PARROT_INTERP, PMC *self);
132+
133+
/* Gets the storage specification for this representation. */
134+
storage_spec (*get_storage_spec) (PARROT_INTERP, PMC *self);
130135
} REPRCommonalities;
131136

132137
/* Hint value to indicate the absence of an attribute lookup or method

0 commit comments

Comments
 (0)