2007-04-17 21:43:03 +04:00
|
|
|
#include <example.h>
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#if defined(_WIN32)
|
2016-05-16 17:34:04 +03:00
|
|
|
#define MODULE_EXPORT __declspec(dllexport)
|
2007-04-17 21:43:03 +04:00
|
|
|
#else
|
2016-05-16 17:34:04 +03:00
|
|
|
#define MODULE_EXPORT
|
2007-04-17 21:43:03 +04:00
|
|
|
#endif
|
|
|
|
|
2007-04-19 19:32:43 +04:00
|
|
|
#ifdef __WATCOMC__
|
2016-05-16 17:34:04 +03:00
|
|
|
#define MODULE_CCONV __cdecl
|
2007-04-19 19:32:43 +04:00
|
|
|
#else
|
2016-05-16 17:34:04 +03:00
|
|
|
#define MODULE_CCONV
|
2007-04-19 19:32:43 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
MODULE_EXPORT int MODULE_CCONV example_mod_1_function(int n)
|
2007-04-17 21:43:03 +04:00
|
|
|
{
|
2007-04-19 19:32:43 +04:00
|
|
|
int result = example_exe_function() + n;
|
2007-04-17 21:43:03 +04:00
|
|
|
printf("world\n");
|
|
|
|
return result;
|
|
|
|
}
|