Bochs/bochs-testing/plugin-test/test8-execlass/module2.cc
Bryce Denney 4cbcd6550b - add test8-execlass, which defines a C++ class in the executable, and
tests that the modules can access it
2002-10-16 13:28:17 +00:00

16 lines
229 B
C++

#include <stdio.h>
#include "main.h"
int n_operations = 0;
void module_init ()
{
printf ("module2 init for main version %s\n", version_string);
register_module ("module2");
}
int operate (int a, int b)
{
return a - b;
}