Skip to content

Commit

Permalink
Add setSlotHandle()
Browse files Browse the repository at this point in the history
  • Loading branch information
ChayimFriedman2 committed Feb 19, 2021
1 parent 84e953f commit 980022e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/plugins/index.md
Expand Up @@ -277,6 +277,7 @@ const char* getSlotBytes(WrenVM* vm, int slot, int* length);
void getVariable(WrenVM* vm, const char* module, const char* name, int slot);
WrenHandle* getSlotHandle(WrenVM* vm, int slot);
void setSlotHandle(WrenVM* vm, int slot, WrenHandle* handle);
```

## Audio
Expand Down
1 change: 1 addition & 0 deletions include/dome.h
Expand Up @@ -131,6 +131,7 @@ typedef struct {

void (*getVariable)(WrenVM* vm, const char* module, const char* name, int slot);
WrenHandle* (*getSlotHandle)(WrenVM* vm, int slot);
void (*setSlotHandle)(WrenVM* vm, int slot, WrenHandle* handle);
} WREN_API_v0;

typedef struct {
Expand Down
1 change: 1 addition & 0 deletions src/plugin.c
Expand Up @@ -322,6 +322,7 @@ WREN_API_v0 wren_v0 = {

.getVariable = wrenGetVariable,
.getSlotHandle = wrenGetSlotHandle
.setSlotHandle = wrenSetSlotHandle
};

DOME_API_v0 dome_v0 = {
Expand Down

0 comments on commit 980022e

Please sign in to comment.