/[ascend]/trunk/ascend/utilities/test/test_ascDynaLoad_shlib.c
ViewVC logotype

Contents of /trunk/ascend/utilities/test/test_ascDynaLoad_shlib.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 480 - (show annotations) (download) (as text)
Mon Apr 17 10:45:23 2006 UTC (18 years, 11 months ago) by johnpye
Original Path: trunk/base/generic/utilities/test/test_ascDynaLoad_shlib.c
File MIME type: text/x-csrc
File size: 320 byte(s)
Adding ASC_DLLSPEC to all functions that are being used by Python interface.
Also cleaned up some #ifdef header brackets and html-style comments inside doxygen comments.
Renamed pygtk/interface/config.in to pygtk/interface/config.h.in and made 
this active again (for ASC_BUILDING_INTERFACE) use.
Trying to catch error in ascpy.Library call with try/except, doesn't work though.
1 #include <utilities/ascConfig.h>
2 #include "test_ascDynaLoad_shlib.h"
3
4 int ASC_DLLSPEC value = FALSE;
5
6 int ASC_DLLSPEC init(void)
7 {
8 value = TRUE;
9 return -5;
10 }
11
12 int ASC_DLLSPEC isInitialized(void)
13 {
14 return value;
15 }
16
17 void ASC_DLLSPEC cleanup(void)
18 {
19 value = FALSE;
20 }
21

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22