diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-05-05 21:53:08 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-05-05 22:17:10 +0100 |
commit | 8b4ec11b8958b7b7893d2b0f6aad20b2ddc3599f (patch) | |
tree | d7cf6aee20d37e59f7f7b747621d3fd9c6b8a3dc /content/handlers/javascript/duktape/dukky.h | |
parent | 8474c5d4c0b59e74e2ef001b5033b78d7a99fcad (diff) | |
download | netsurf-8b4ec11b8958b7b7893d2b0f6aad20b2ddc3599f.tar.gz netsurf-8b4ec11b8958b7b7893d2b0f6aad20b2ddc3599f.tar.bz2 |
Dukky: Change from specifically named generics
Instead of specifically having to extract each generic by name,
such as makeListProxy, instead support the entire generics table
and use `dukky_push_generics()` to gain access to it.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'content/handlers/javascript/duktape/dukky.h')
-rw-r--r-- | content/handlers/javascript/duktape/dukky.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/content/handlers/javascript/duktape/dukky.h b/content/handlers/javascript/duktape/dukky.h index ee9f47409..93d416983 100644 --- a/content/handlers/javascript/duktape/dukky.h +++ b/content/handlers/javascript/duktape/dukky.h @@ -51,4 +51,7 @@ void dukky_shuffle_array(duk_context *ctx, duk_uarridx_t idx); /* pcall something, and if it errored, also dump the error to the log */ duk_int_t dukky_pcall(duk_context *ctx, duk_size_t argc, bool reset_timeout); +/* Push a generics function onto the stack */ +void dukky_push_generics(duk_context *ctx, const char *generic); + #endif |