Bochs/bochs-testing/plugin-test/test2-dynamic/module1.cc
Bryce Denney c0e6504d12 - add printf in the module. It seems that in my libtool builds on cygwin,
modules that call libc functions crash.  This exposes that bug.
2002-10-16 12:24:43 +00:00

12 lines
199 B
C++

#include <stdio.h>
#define MODULE1_DLL_EXPORT
#include "module1.h"
const char *module_name = "AddModule";
int operate (int a, int b)
{
printf ("module1: operate was called\n");
return a + b;
}