Experimenting with global function wrapping, generating C proxy file, 'prepend' feature.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-maciekd@10512 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Maciej Drwal 2008-05-30 16:17:24 +00:00
commit a36f790271
3 changed files with 226 additions and 161 deletions

View file

@ -1102,6 +1102,6 @@ c: $(SRCS)
$(SWIG) -c $(SWIGOPT) $(INTERFACE)
$(CC) -c $(CCSHARED) $(CFLAGS) $(ISRCS) $(SRCS) $(INCLUDES)
$(LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) -o $(LIBPREFIX)_$(TARGET)$(SO)
$(CC) $(EXEC) -L. -l$(LIBPREFIX)_$(TARGET)
$(CC) $(EXEC) $(TARGET)_proxy.c -L. -l$(LIBPREFIX)_$(TARGET)

View file

@ -1,6 +1,9 @@
/* File : example.i */
%module example
%inline %{
%feature("prepend") {
printf("Testing...\n");
}
extern int gcd(int x, int y);
%}