summaryrefslogtreecommitdiffstats
path: root/Tests/Plugin/src/example_mod_1.c
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/Plugin/src/example_mod_1.c')
-rw-r--r--Tests/Plugin/src/example_mod_1.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/Tests/Plugin/src/example_mod_1.c b/Tests/Plugin/src/example_mod_1.c
index f96ba29..1fc7338 100644
--- a/Tests/Plugin/src/example_mod_1.c
+++ b/Tests/Plugin/src/example_mod_1.c
@@ -8,9 +8,15 @@
# define MODULE_EXPORT
#endif
-MODULE_EXPORT int example_mod_1_function()
+#ifdef __WATCOMC__
+# define MODULE_CCONV __cdecl
+#else
+# define MODULE_CCONV
+#endif
+
+MODULE_EXPORT int MODULE_CCONV example_mod_1_function(int n)
{
- int result = example_exe_function() + 456;
+ int result = example_exe_function() + n;
printf("world\n");
return result;
}