FreeBSD Bugzilla – Attachment 170168 Details for
Bug 209413
c++ symbolic functions broken on arm
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
shared.cpp
shared.cpp (text/plain), 405 bytes, created by
Sylvain Garrigues
on 2016-05-10 06:41:10 UTC
(
hide
)
Description:
shared.cpp
Filename:
MIME Type:
Creator:
Sylvain Garrigues
Created:
2016-05-10 06:41:10 UTC
Size:
405 bytes
patch
obsolete
> >#include "shared.h" >#include <cstring> > >S::~S() {} >void S::foo() {} >void S::bar() {} > >static const Spmf spmfArray[] = { 0, &S::foo, 0 }; >static const size_t spmfArraySize = sizeof(spmfArray) / sizeof(spmfArray[0]); > >bool test(void **f) >{ > for (size_t i = 0; i < spmfArraySize; ++i) { > if (spmfArray[i] == *reinterpret_cast<Spmf *>(f)) > return true; > } > > return false; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 209413
:
170167
| 170168 |
170169