Functions without class

18 views
Skip to first unread message

Sebastian Noack

unread,
Jul 25, 2013, 2:29:24 AM7/25/13
to nixysa...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages