Skip to content

Commit a8773a7

Browse files
committed
Return null when defining a macro
1 parent 308f71e commit a8773a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "lispjs",
33
"version": "1.0.0",
44
"description": "Simple Lisp implementation in JavaScript",
5-
"main": "index.js",
5+
"main": "./src/lisp.js",
66
"dependencies": {
77
"readline-sync": "^1.2.19"
88
},
@@ -14,7 +14,6 @@
1414
"test": "mocha specs/",
1515
"repl": "node src/repl.js"
1616
},
17-
"main": "./src/lisp.js",
1817
"repository": {
1918
"type": "git",
2019
"url": "https://github.com/amitayh/lispjs.git"

src/forms.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ function defmacro(name, argNames, body) {
3737
var expanded = evaluate(body, macroEnv);
3838
return evaluate(expanded, env);
3939
});
40+
return null;
4041
}
4142

4243
/**

0 commit comments

Comments
 (0)