DllExport
DllExport copied to clipboard
Add compilation symbol to preserve DllExport attribute (metadata)
Reference to DllExport is always removed, which may be unwanted in some situations.
What I would suggest to do is:
Search compilation symbols for DLLEXPORT_PRESERVE
, and if it is present, do not remove reference to DllExport, otherwise keep current behavior.
which may be unwanted in some situations
for example ? :)
for example ? :)
I don't have any good example where metadata should be preserved, anyway up to you.. It is not hard to do.