2007-04-17 21:43:03 +04:00
|
|
|
#include <example.h>
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#if defined(_WIN32)
|
|
|
|
# define MODULE_EXPORT __declspec(dllexport)
|
|
|
|
#else
|
|
|
|
# define MODULE_EXPORT
|
|
|
|
#endif
|
|
|
|
|
2007-04-19 19:32:43 +04:00
|
|
|
#ifdef __WATCOMC__
|
|
|
|
# define MODULE_CCONV __cdecl
|
|
|
|
#else
|
|
|
|
# define MODULE_CCONV
|
|
|
|
#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;
|
|
|
|
}
|