Skip to content

Commit

Permalink
fix a vendoring issues with hpy wip
Browse files Browse the repository at this point in the history
  • Loading branch information
pmp-p committed Mar 3, 2024
1 parent 96543b8 commit 4170267
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/pygbag/support/pygbag_fsm.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Draft(object):
...


@dataclass()
@dataclass
class FSM(Machine):
states: tuple
initial: str
Expand Down
10 changes: 7 additions & 3 deletions support/__EMSCRIPTEN__.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ char buf[FD_BUFFER_MAX];
# pragma message " @@@@@@@@@@@ NOT YET ../build/gen_inittab.h @@@@@@@@@@@@"
#endif


#if PYDK_static_hpy
// ===== HPY =======

#define HPY_ABI_UNIVERSAL
Expand Down Expand Up @@ -172,9 +172,9 @@ PyInit__platform(void)
{
return (PyObject *)_HPyModuleDef_AsPyInit(&hpy_platform_def);
}
#endif // hpy


#endif // PKPY
#endif // !PKPY



Expand Down Expand Up @@ -997,7 +997,11 @@ main(int argc, char **argv)

PyImport_AppendInittab("embed", PyInit_embed);

// wip hpy
#if PYDK_static_hpy
PyImport_AppendInittab("_platform", PyInit__platform);
#endif


# include "../build/gen_inittab.c"

Expand Down

0 comments on commit 4170267

Please sign in to comment.