Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Rishabh Gupta
purr-data
Commits
9b3dbf41
Commit
9b3dbf41
authored
Jan 19, 2014
by
Ivica Bukvic
Browse files
added debugging annotation
parent
fed76aae
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/t_tkcmd.c
View file @
9b3dbf41
...
...
@@ -555,10 +555,15 @@ static int pdCmd(ClientData cd, Tcl_Interp *interp, int argc, char **argv)
void
tcl_mess
(
char
*
s
)
{
int
result
;
// PRODUCTION VERSION
char
catch_s
[
strlen
(
s
)
+
10
];
sprintf
(
catch_s
,
"catch { %s }"
,
s
);
// DEBUGGING VERSION
//char catch_s[strlen(s)];
//sprintf(catch_s, "%s", s);
Tcl_Obj
*
messageObjPtr
=
Tcl_NewStringObj
(
catch_s
,
-
1
);
Tcl_IncrRefCount
(
messageObjPtr
);
result
=
Tcl_EvalObjEx
(
tk_pdinterp
,
messageObjPtr
,
TCL_EVAL_GLOBAL
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment