Last change
on this file since 95259 was 74935, checked in by vboxsync, 6 years ago |
Attempt to correct dyld: Symbol not found ZN7nsDebug9AssertionEPKcS1_S1_i in VBoxXPCOM.dylib, similar to changes in r125944
|
-
Property svn:keywords
set to
Id
|
File size:
1.5 KB
|
Line | |
---|
1 | /* The usual story: drag stuff from the libraries into the link. */
|
---|
2 |
|
---|
3 |
|
---|
4 | #include <plstr.h>
|
---|
5 | #include <prio.h>
|
---|
6 | #include <nsDeque.h>
|
---|
7 | #include <nsHashSets.h>
|
---|
8 | #include <nsIPipe.h>
|
---|
9 | #include <xptcall.h>
|
---|
10 | #include <nsProxyRelease.h>
|
---|
11 | #include "xpcom/proxy/src/nsProxyEventPrivate.h"
|
---|
12 | #include "nsTraceRefcnt.h"
|
---|
13 | #include "nsDebug.h"
|
---|
14 |
|
---|
15 | uintptr_t deps[] =
|
---|
16 | {
|
---|
17 | (uintptr_t)PL_strncpy,
|
---|
18 | (uintptr_t)PL_strchr,
|
---|
19 | (uintptr_t)PL_strncpyz,
|
---|
20 | (uintptr_t)PL_HashString,
|
---|
21 | (uintptr_t)PR_DestroyPollableEvent,
|
---|
22 | (uintptr_t)NS_NewPipe2,
|
---|
23 | (uintptr_t)NS_ProxyRelease,
|
---|
24 | (uintptr_t)nsTraceRefcnt::LogRelease,
|
---|
25 | (uintptr_t)nsDebug::Assertion,
|
---|
26 | 0
|
---|
27 | };
|
---|
28 |
|
---|
29 | class foobardep : public nsXPTCStubBase
|
---|
30 | {
|
---|
31 | public:
|
---|
32 | NS_IMETHOD_(nsrefcnt) AddRef(void)
|
---|
33 | {
|
---|
34 | return 1;
|
---|
35 | }
|
---|
36 |
|
---|
37 | NS_IMETHOD_(nsrefcnt) Release(void)
|
---|
38 | {
|
---|
39 | return 0;
|
---|
40 | }
|
---|
41 |
|
---|
42 | NS_IMETHOD GetInterfaceInfo(nsIInterfaceInfo** info)
|
---|
43 | {
|
---|
44 | (void)info;
|
---|
45 | return 0;
|
---|
46 | }
|
---|
47 |
|
---|
48 | // call this method and return result
|
---|
49 | NS_IMETHOD CallMethod(PRUint16 methodIndex, const nsXPTMethodInfo* info, nsXPTCMiniVariant* params)
|
---|
50 | {
|
---|
51 | (void)methodIndex;
|
---|
52 | (void)info;
|
---|
53 | (void)params;
|
---|
54 | return 0;
|
---|
55 | }
|
---|
56 |
|
---|
57 | };
|
---|
58 |
|
---|
59 |
|
---|
60 |
|
---|
61 | void foodep(void)
|
---|
62 | {
|
---|
63 | nsVoidHashSetSuper *a = new nsVoidHashSetSuper();
|
---|
64 | a->Init(123);
|
---|
65 | nsDeque *b = new nsDeque((nsDequeFunctor*)0);
|
---|
66 |
|
---|
67 | //nsXPTCStubBase
|
---|
68 | nsProxyEventObject *c = new nsProxyEventObject();
|
---|
69 | c->Release();
|
---|
70 |
|
---|
71 | foobardep *d = new foobardep();
|
---|
72 | nsXPTCStubBase *e = d;
|
---|
73 | e->Release();
|
---|
74 | }
|
---|
75 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.