command: implement callable bytecode functions

This commit is contained in:
2026-05-30 19:52:50 +01:00
parent 96bf76aabc
commit 1710f705e9
3 changed files with 213 additions and 0 deletions
+6
View File
@@ -17,6 +17,11 @@ static void init(fx_object *obj, void *priv)
{
}
static void fini(fx_object *obj, void *priv)
{
struct bshell_command_p *cmd = priv;
}
static void command_set_args(
struct bshell_command_p *cmd,
fx_value *args,
@@ -283,5 +288,6 @@ FX_TYPE_DEFINITION_BEGIN(bshell_command)
FX_TYPE_NAME("bshell.runtime.command");
FX_TYPE_CLASS(bshell_command_class);
FX_TYPE_INSTANCE_INIT(init);
FX_TYPE_INSTANCE_FINI(fini);
FX_TYPE_INSTANCE_PRIVATE(struct bshell_command_p);
FX_TYPE_DEFINITION_END(bshell_command)