Subj : Re: js_GetSlotThreadSafe problems To : netscape.public.mozilla.jseng From : Mike Moening Date : Thu Mar 17 2005 12:16 pm Looks like the macro JSVAL_IS_FUNCTION also brings in OBJ_GET_CLASS. Is there a public equivalent? Again thank you much for your time! "Mike Moening" wrote in message news:d1chdl$dmv2@ripley.netscape.com... > I changed it to read like this: > JS_snprintf(buf, sizeof buf, "[object %s]", > JS_GET_CLASS(pJSContext, JSVAL_TO_OBJECT(v))->name); > > Still the same linker error. Something else is suckin it in yet... > > "Brendan Eich" wrote in message > news:4239C7D0.3010702@meer.net... > > Mike Moening wrote: > > > > > JS_snprintf(buf, sizeof buf, "[object %s]", > > > OBJ_GET_CLASS(pJSContext, JSVAL_TO_OBJECT(v))->name); > > > > OBJ_GET_CLASS calls OBJ_GET_SLOT. > > > > Please don't include private headers if you can help it. Above, you > > could use JS_GET_CLASS instead, which is public API. > > > > /be > > .