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
Stefan Huber
purr-data
Commits
b72d9703
Commit
b72d9703
authored
Aug 13, 2017
by
Jonathan Wilkes
Browse files
try to track down a loadsym bug
parent
0ac885dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/m_class.c
View file @
b72d9703
...
...
@@ -219,6 +219,7 @@ t_class *classtable_findbyname(t_symbol *s)
t_class
*
class_new
(
t_symbol
*
s
,
t_newmethod
newmethod
,
t_method
freemethod
,
size_t
size
,
int
flags
,
t_atomtype
type1
,
...)
{
post
(
"class_new"
);
va_list
ap
;
t_atomtype
vec
[
MAXPDARG
+
1
],
*
vp
=
vec
;
int
count
=
0
;
...
...
@@ -246,8 +247,10 @@ t_class *class_new(t_symbol *s, t_newmethod newmethod, t_method freemethod,
/* add a "new" method by the name specified by the object */
class_addmethod
(
pd_objectmaker
,
(
t_method
)
newmethod
,
s
,
vec
[
0
],
vec
[
1
],
vec
[
2
],
vec
[
3
],
vec
[
4
],
vec
[
5
]);
post
(
"about to check for class_loadsym, which is %s"
,
class_loadsym
);
if
(
class_loadsym
)
{
post
(
"got a loadsym... adding %s"
,
class_loadsym
);
/* if we're loading an extern it might have been invoked by a
longer file name; in this case, make this an admissible name
too. */
...
...
@@ -632,6 +635,7 @@ void new_anything(void *dummy, t_symbol *s, int argc, t_atom *argv)
}
newest
=
0
;
class_loadsym
=
s
;
post
(
"new_anything: class_loadsym is %s"
,
class_loadsym
);
if
(
sys_load_lib
(
canvas_getcurrent
(),
s
->
s_name
))
{
tryingalready
++
;
...
...
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