[seed] Implementing the gjs/system breakpoint method
- From: Alan Knowles <alank src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seed] Implementing the gjs/system breakpoint method
- Date: Fri, 15 Jan 2016 06:46:50 +0000 (UTC)
commit ef4098faaa5afcbf8011b44a442ae5c998d8c54b
Author: Danilo Cesar Lemes de Paula <danilo cesar collabora co uk>
Date: Thu Jan 14 13:47:33 2016 -0200
Implementing the gjs/system breakpoint method
modules/gjs/system/seed-system.c | 16 +++++-----------
1 files changed, 5 insertions(+), 11 deletions(-)
---
diff --git a/modules/gjs/system/seed-system.c b/modules/gjs/system/seed-system.c
index 2727019..4e0ff3e 100644
--- a/modules/gjs/system/seed-system.c
+++ b/modules/gjs/system/seed-system.c
@@ -89,18 +89,12 @@ gjs_breakpoint (SeedContext ctx,
size_t argumentCount,
const SeedValue arguments[], SeedException * exception)
{
-/*static SeedValue
-gjs_breakpoint(SeedContext context,
- unsigned argc,
- SeedValue *vp)
-{
- JS::CallArgs argv = JS::CallArgsFromVp (argc, vp);
- if (!gjs_parse_call_args(context, "breakpoint", "", argv))
- return FALSE;
+ if (argumentCount != 0) {
+ NUMARG_EXPECTED_EXCEPTION("breakpoint", "0 arguments");
+ }
+
G_BREAKPOINT();
- argv.rval().set(JSVAL_VOID);
- return TRUE;*/
- return seed_value_from_boolean (ctx, TRUE, exception);
+ return seed_make_undefined (ctx);
}
static SeedValue
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]