mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00
Wrap deno library in a namespace.
This commit is contained in:
parent
9df9cdae07
commit
092ec21381
4 changed files with 14 additions and 6 deletions
|
@ -32,6 +32,8 @@ IN THE SOFTWARE.
|
|||
|
||||
#define CHECK(x) assert(x) // TODO(ry) use V8's CHECK.
|
||||
|
||||
namespace deno {
|
||||
|
||||
// Extracts a C string from a v8::V8 Utf8Value.
|
||||
const char* ToCString(const v8::String::Utf8Value& value) {
|
||||
return *value ? *value : "<string conversion failed>";
|
||||
|
@ -354,3 +356,5 @@ void deno_dispose(Deno* d) {
|
|||
}
|
||||
|
||||
void deno_terminate_execution(Deno* d) { d->isolate->TerminateExecution(); }
|
||||
|
||||
} // namespace deno
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue