juicewrld-desktopsrc-taurihosttestplugjwtestdll.c
1.4.2Released Nov 21, 2026
jwtestdll.c
16 lines951 bytesC++// Tiny modules for the scan's tests (debug builds only, never shipped, and never loaded by any test: the scan reads// their headers from disk). build.rs builds this file as 64-bit and 32-bit DLLs, each exporting one of the entry// points the scan tells plugins apart by: VSTPluginMain (an old-format plugin), main (an older one still),// GetPluginFactory (a VST 3 module), or nothing a plugin exports (a helper library). No C runtime, no entry point. defined(JW_VST2)__declspec(dllexport) void *VSTPluginMain(void *host) { (void)host; return 0; } defined(JW_VST2_MAIN)// Exported under the name `main`, as plugins from before VSTPluginMain did (a DLL's `main` is just a name).void *jw_main(void *host) { (void)host; return 0; } comment(linker, "/EXPORT:main=jw_main") defined(JW_VST3)__declspec(dllexport) void *GetPluginFactory(void) { return 0; }__declspec(dllexport) int jw_helper(void) { return 1; }