| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a47fd67 commit 6da4aa3
24 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,10 +1,10 @@ | |||
| 1 | 1 | { | |
| 2 | 2 | "targets": [ | |
| 3 | 3 | { | |
| 4 | - "target_name": "binding", | ||
| 4 | + "target_name": "2_function_arguments", | ||
| 5 | 5 | "sources": [ | |
| 6 | 6 | "../entry_point.c", | |
| 7 | - "binding.c" | ||
| 7 | + "2_function_arguments.c" | ||
| 8 | 8 | ] | |
| 9 | 9 | } | |
| 10 | 10 | ] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | const common = require('../../common'); | |
| 3 | 3 | const assert = require('assert'); | |
| 4 | - const addon = require(`./build/${common.buildType}/binding`); | ||
| 4 | + const addon = require(`./build/${common.buildType}/2_function_arguments`); | ||
| 5 | 5 | ||
| 6 | 6 | assert.strictEqual(addon.add(3, 5), 8); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,10 +1,10 @@ | |||
| 1 | 1 | { | |
| 2 | 2 | "targets": [ | |
| 3 | 3 | { | |
| 4 | - "target_name": "binding", | ||
| 4 | + "target_name": "3_callbacks", | ||
| 5 | 5 | "sources": [ | |
| 6 | 6 | "../entry_point.c", | |
| 7 | - "binding.c" | ||
| 7 | + "3_callbacks.c" | ||
| 8 | 8 | ] | |
| 9 | 9 | } | |
| 10 | 10 | ] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | const common = require('../../common'); | |
| 3 | 3 | const assert = require('assert'); | |
| 4 | - const addon = require(`./build/${common.buildType}/binding`); | ||
| 4 | + const addon = require(`./build/${common.buildType}/3_callbacks`); | ||
| 5 | 5 | ||
| 6 | 6 | addon.RunCallback(function(msg) { | |
| 7 | 7 | assert.strictEqual(msg, 'hello world'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,10 +1,10 @@ | |||
| 1 | 1 | { | |
| 2 | 2 | "targets": [ | |
| 3 | 3 | { | |
| 4 | - "target_name": "binding", | ||
| 4 | + "target_name": "4_object_factory", | ||
| 5 | 5 | "sources": [ | |
| 6 | 6 | "../entry_point.c", | |
| 7 | - "binding.c" | ||
| 7 | + "4_object_factory.c" | ||
| 8 | 8 | ] | |
| 9 | 9 | } | |
| 10 | 10 | ] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | const common = require('../../common'); | |
| 3 | 3 | const assert = require('assert'); | |
| 4 | - const addon = require(`./build/${common.buildType}/binding`); | ||
| 4 | + const addon = require(`./build/${common.buildType}/4_object_factory`); | ||
| 5 | 5 | ||
| 6 | 6 | const obj1 = addon('hello'); | |
| 7 | 7 | const obj2 = addon('world'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments