How can I export a C++ function without a class? The function can be implemented either as a function or method of a class in C++. But I don't want to export any class, but just a simple function. So that the Javascript code can look like:
plugin = document.createElement('embed');
plugin.setAttribute('type', 'application/x-foo');
docuemnt.documentElement.appendChild(plugin);
plugin.foo();
Cheers
Sebastian