This post has NOT been accepted by the mailing list yet.
Microsoft Windows 7 64-bit
Visual Studio 2010
I have built a 64-bit version of SpiderMonkey and need to call it from a 64-bit application. My question is, how do I pass the address of an instantiated class in my application to the script. I believe that I need to pass it as a jval but the address will be 64-bits won't it?
When I did this all as 32-bit I used INT_TO_JSVAL:
int CConversionScript::convert(CConversionItem *source, CConversionItem *destination)
jsval _function = JSVAL_VOID;