From a3fcec857214548b2570904f0cd54776c62bb323 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20V=C3=A1zquez?= Date: Tue, 4 Jun 2013 18:59:17 +0100 Subject: [PATCH] lisp-to-js and js-to-lisp wrappers --- src/compiler.lisp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compiler.lisp b/src/compiler.lisp index 449bb3e..0ad7637 100644 --- a/src/compiler.lisp +++ b/src/compiler.lisp @@ -1247,6 +1247,9 @@ (define-builtin objectp (x) (js!bool (code "(typeof (" x ") === 'object')"))) +(define-builtin lisp-to-js (x) (code "lisp_to_js(" x ")")) +(define-builtin js-to-lisp (x) (code "js_to_lisp(" x ")")) + (define-builtin oget (object key) (js!selfcall "var tmp = " "(" object ")[xstring(" key ")];" *newline* -- 1.7.10.4