module Duktape

Overview

time.cr: duktape time handling

Copyright (c) 2017 Jesse Doyle. All rights reserved.

This is free software. Please see LICENSE for details.

Defined in:

duktape/api/buffer.cr
duktape/api/call.cr
duktape/api/coercion.cr
duktape/api/compile.cr
duktape/api/conversion.cr
duktape/api/debug.cr
duktape/api/error_handling.cr
duktape/api/eval.cr
duktape/api/get.cr
duktape/api/heap.cr
duktape/api/math.cr
duktape/api/object.cr
duktape/api/opt.cr
duktape/api/pop.cr
duktape/api/prop.cr
duktape/api/push.cr
duktape/api/require.cr
duktape/api/stack.cr
duktape/api/strings.cr
duktape/api/thread.cr
duktape/api/time.cr
duktape/api/type.cr
duktape/builtin/alert.cr
duktape/builtin/base.cr
duktape/builtin/console.cr
duktape/builtin/print.cr
duktape/context.cr
duktape/error.cr
duktape/log.cr
duktape/runtime.cr
duktape/sandbox.cr
duktape/support/file.cr
duktape/support/time.cr
duktape/version.cr

Constant Summary

TYPE_TO_NUM = TYPES.invert
TYPES = {LibDUK::Type::None.value => :none, LibDUK::Type::Undefined.value => :undefined, LibDUK::Type::Null.value => :null, LibDUK::Type::Boolean.value => :boolean, LibDUK::Type::Number.value => :number, LibDUK::Type::String.value => :string, LibDUK::Type::Object.value => :object, LibDUK::Type::Buffer.value => :buffer, LibDUK::Type::Pointer.value => :pointer, LibDUK::Type::Lightfunc.value => :lightfunc}

Class Method Summary

Macro Summary

Class Method Detail

def self.api_version #

[View source]
def self.create_heap(udata : Pointer(Void) | Nil = nil, &fatal : Pointer(Void), Pointer(UInt8) -> NoReturn) #

[View source]
def self.create_heap_default #

[View source]
def self.create_heap_udata(udata : Pointer(Void)) #

[View source]
def self.destroy_heap(ctx : LibDUK::Context) #

[View source]
def self.version #

[View source]

Macro Detail

macro define_error_class(klass, parent) #

[View source]