diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-07-26 17:47:42 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-07-29 00:22:39 -0400 |
commit | 20a41aa9b5c3883390d368b74d7e9e1c46efd32a (patch) | |
tree | 874ad7e3a2fe600d75aca9edbf6891200262efd5 /src/deno.h | |
parent | e7445507aac75b7e1471413f862c7f72ef0d02c4 (diff) |
Add from_c() to get a Deno object from ptr.
This is a utility function for CodeCache and other handlers.
Diffstat (limited to 'src/deno.h')
-rw-r--r-- | src/deno.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/deno.h b/src/deno.h index bb4c91f1c..7bde5ab9d 100644 --- a/src/deno.h +++ b/src/deno.h @@ -31,6 +31,9 @@ void deno_set_flags(int* argc, char** argv); Deno* deno_new(void* data, deno_recv_cb cb); void deno_delete(Deno* d); +// Returns the void* data provided in deno_new. +void* deno_get_data(Deno*); + // Returns false on error. // Get error text with deno_last_exception(). // 0 = fail, 1 = success |