Skip to content

Embind port #7239

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 38 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
yikes
  • Loading branch information
kripken committed Apr 2, 2024
commit 3a3076f7c77f500cb926524bafa6f64e7fbd08a9
3 changes: 2 additions & 1 deletion src/binaryen-embind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ EMSCRIPTEN_BINDINGS(Binaryen) {
class_<Nop, base<Expression>>("Nop");



#if 0

#define DELEGATE_ID id

Expand Down Expand Up @@ -121,6 +121,7 @@ EMSCRIPTEN_BINDINGS(Binaryen) {
;

#include "wasm-delegations.def"
#endif



Expand Down
5 changes: 3 additions & 2 deletions src/wasm-delegations-fields.def
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,12 @@ switch (DELEGATE_ID) { \

#ifndef DELEGATE_FIELD_CASE_START
#define DELEGATE_FIELD_CASE_START(id) \
case Expression::Id::id#Id: { \
case Expression::Id::id##Id: { \
DELEGATE_START(id);
#endif

#ifndef DELEGATE_FIELD_CASE_END
#define DELEGATE_FIELD_CASE_END \
#define DELEGATE_FIELD_CASE_END(id) \
DELEGATE_END(id); \
break; \
}
Expand Down Expand Up @@ -789,6 +789,7 @@ DELEGATE_FIELD_CASE_START(StringSliceIter)
DELEGATE_FIELD_CHILD(StringSliceIter, ref);
DELEGATE_FIELD_CASE_END(StringSliceIter)

DELEGATE_FIELD_CASE_START(ContBind)
DELEGATE_FIELD_CHILD(ContBind, cont);
DELEGATE_FIELD_CHILD_VECTOR(ContBind, operands);
DELEGATE_FIELD_HEAPTYPE(ContBind, contTypeAfter);
Expand Down