Skip to content

Commit

Permalink
tidy-up
Browse files Browse the repository at this point in the history
  • Loading branch information
uatuko committed Sep 28, 2024
1 parent 6a06ce8 commit a786b6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
'include_dirs': [
'<!(. <(tclconfig) && echo ${TCL_INCLUDE_SPEC} | sed s/-I//g)',
'<!(node -p "require(\'node-addon-api\').include_dir")'

],
'dependencies': ["<!(node -p \"require('node-addon-api').gyp\")"],
'link_settings': {
Expand Down
5 changes: 2 additions & 3 deletions src/tclbinding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ Napi::Value TclBinding::cmd( const Napi::CallbackInfo& info ) {
#endif

return env.Undefined();

}


Expand Down Expand Up @@ -208,8 +207,8 @@ Napi::Value TclBinding::proc( const Napi::CallbackInfo& info ) {

CmdDef *cmdRec = new CmdDef(env);
cmdRec->funcRef = Napi::Persistent(info[1].As<Napi::Function>());
Tcl_Command code = Tcl_CreateCommand(this->_interp, cmd.c_str(),

Tcl_Command code = Tcl_CreateCommand(this->_interp, cmd.c_str(),
[](ClientData clientData, Tcl_Interp *ti, int argc, const char *argv[]) {
CmdDef *cmdData = (CmdDef *)clientData;
Napi::Env env = cmdData->env;
Expand Down

0 comments on commit a786b6d

Please sign in to comment.