[seed] Add seed_make_undefined to the API



commit 7adb2a4e54da8347583218cc015eeede0e2550d3
Author: Robert Carr <racarr svn gnome org>
Date:   Fri May 8 21:02:19 2009 -0400

    Add seed_make_undefined to the API
---
 libseed/seed-api.c |    6 ++++++
 libseed/seed.h     |    1 +
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/libseed/seed-api.c b/libseed/seed-api.c
index 80a9012..73b3dba 100644
--- a/libseed/seed-api.c
+++ b/libseed/seed-api.c
@@ -588,3 +588,9 @@ seed_make_array (JSContextRef ctx,
 {
   return JSObjectMakeArray (ctx, num_elements, elements, exception);
 }
+
+JSValueRef
+seed_make_undefined (JSContextRef ctx)
+{
+  return JSValueMakeUndefined (ctx);
+}
diff --git a/libseed/seed.h b/libseed/seed.h
index cb28c3e..1db4cc7 100644
--- a/libseed/seed.h
+++ b/libseed/seed.h
@@ -105,6 +105,7 @@ SeedGlobalContext seed_context_ref (SeedGlobalContext ctx);
 void seed_context_unref (SeedGlobalContext ctx);
 
 SeedValue seed_make_null (SeedContext ctx);
+SeedValue seed_make_undefined (SeedContext ctx);
 
 SeedObject seed_make_object (SeedContext ctx, SeedClass class,
 			     gpointer private);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]