also, change the module name to director_frob
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5665 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e524a03a55
commit
05d6e6b04f
4 changed files with 7 additions and 7 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
%module(directors="1") frob;
|
%module(directors="1") director_frob;
|
||||||
|
|
||||||
%header %{
|
%header %{
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
|
|
||||||
import frob.*;
|
import director_frob.*;
|
||||||
import java.lang.reflect.*;
|
import java.lang.reflect.*;
|
||||||
|
|
||||||
public class frob_runme
|
public class director_frob_runme
|
||||||
{
|
{
|
||||||
static {
|
static {
|
||||||
try {
|
try {
|
||||||
System.loadLibrary("frob");
|
System.loadLibrary("director_frob");
|
||||||
} catch (UnsatisfiedLinkError e) {
|
} catch (UnsatisfiedLinkError e) {
|
||||||
System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + e);
|
System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + e);
|
||||||
System.exit(1);
|
System.exit(1);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
from frob import *
|
from director_frob import *
|
||||||
|
|
||||||
foo = Bravo();
|
foo = Bravo();
|
||||||
s = foo.abs_method();
|
s = foo.abs_method();
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
require 'frob'
|
require 'director_frob'
|
||||||
|
|
||||||
foo = Frob::Bravo.new;
|
foo = Director_frob::Bravo.new;
|
||||||
s = foo.abs_method;
|
s = foo.abs_method;
|
||||||
|
|
||||||
raise RuntimeError if s != "Bravo::abs_method()"
|
raise RuntimeError if s != "Bravo::abs_method()"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue