1

Is there a way to use a svelte #define to transform the unsightly ""extern \"C\" __declspec(dllexport)" into a single, enchanting term "DLL".
That is:

#define DLL "extern "C" __declspec(dllexport)"

The problem, of course, is the embedded quote marks around the C.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
PaeneInsula
  • 2,010
  • 3
  • 31
  • 57

1 Answers1

6

You don't need the wrapping quotes. The following is legit:

#define DLL extern "C" __declspec(dllexport)
reuben
  • 3,360
  • 23
  • 28