@@ -212,7 +212,9 @@ int main(int argc, char* argv[])
212
212
213
213
{
214
214
std::ofstream output (" exports.def" );
215
- output << " EXPORTS\n " ;
215
+ output << " ; Do not edit this file manually because it has been generated by generator.cpp\n "
216
+ << " \n "
217
+ << " EXPORTS\n " ;
216
218
217
219
for (const ImageExport& item : exports)
218
220
{
@@ -241,7 +243,9 @@ int main(int argc, char* argv[])
241
243
242
244
{
243
245
std::ofstream output (" winmm.asm" );
244
- output << " .386\n "
246
+ output << " ; Do not edit this file manually because it has been generated by generator.cpp\n "
247
+ << " \n "
248
+ << " .386\n "
245
249
<< " .model flat, stdcall\n "
246
250
<< " \n "
247
251
<< " .code\n "
@@ -272,7 +276,9 @@ int main(int argc, char* argv[])
272
276
273
277
{
274
278
std::ofstream output (" setup.cpp" );
275
- output << " #define WIN32_LEAN_AND_MEAN\n "
279
+ output << " // Do not edit this file manually because it has been generated by generator.cpp\n "
280
+ << " \n "
281
+ << " #define WIN32_LEAN_AND_MEAN\n "
276
282
<< " #include <windows.h>\n "
277
283
<< " #include <array>\n "
278
284
<< " \n "
@@ -286,7 +292,10 @@ int main(int argc, char* argv[])
286
292
if (!item.forwarded .empty ())
287
293
continue ;
288
294
289
- output << " functions[" << item.hint << " ] = GetProcAddress(handle, LPCSTR(" << item.ordinal << " ));\n " ;
295
+ if (item.name .empty ())
296
+ output << " functions[" << item.hint << " ] = GetProcAddress(handle, LPCSTR(" << item.ordinal << " ));\n " ;
297
+ else
298
+ output << " functions[" << item.hint << " ] = GetProcAddress(handle, \" " << item.name << " \" );\n " ;
290
299
}
291
300
292
301
output << " }\n " ;
0 commit comments