Closed Bug 326170 Opened 19 years ago Closed 19 years ago

JSVAL_IS_FUNCTION doesn't work outside js/src

Categories

(Core :: JavaScript Engine, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 326165

People

(Reporter: timeless, Unassigned)

Details

there are a couple of problems 1. jsfun.h NB for JSVAL_IS_FUNCTION doesn't mention jsutil.h r:/mozilla\js\jsd\jsd_xpc.cpp(2362) : error C3861: 'JS_ASSERT': identifier not f ound, even with argument-dependent lookup r:/mozilla\js\jsd\jsd_xpc.cpp(2362) : error C3861: 'JS_ASSERT': identifier not f ound, even with argument-dependent lookup the line was JSVAL_IS_FUNCTION(...) 2. if you do #include jsutil.h to get rid of that error, you get: jsd_xpc.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) long __cdecl js_GetSlotThreadSafe(struct JSContext *,struct JSObject *,unsigned long)" (__imp_?js_GetSlotThreadSafe@@YAJPAUJSContext@@PAUJSObject@@K@Z) referenced in function "unsigned int __cdecl calculateJSValSize(long,struct JSContext *)" (?calculateJSValSize@@YAIJPAUJSContext@@@Z) which is a lot harder to deal with. I'm going to try to write a version that's EXPORT_JS_API friendly :(.
*** This bug has been marked as a duplicate of 326165 ***
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.