irccd
3.0.3
|
Specialization for generic file type as shared_ptr. More...
#include <file_api.hpp>
Static Public Member Functions | |
static void | push (duk_context *ctx, std::shared_ptr< file > fp) |
static auto | require (duk_context *ctx, duk_idx_t index) -> std::shared_ptr< file > |
Specialization for generic file type as shared_ptr.
Supports push, require.
|
static |
Push a file.
ctx | the the context |
fp | the file |
|
static |
Require a file. Raises a JavaScript error if not a File.
ctx | the context |
index | the index |