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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 480 - (hide 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 johnpye 399 #include <utilities/ascConfig.h>
2 jds 59 #include "test_ascDynaLoad_shlib.h"
3    
4 johnpye 480 int ASC_DLLSPEC value = FALSE;
5 jds 59
6 johnpye 480 int ASC_DLLSPEC init(void)
7 jds 59 {
8     value = TRUE;
9     return -5;
10     }
11    
12 johnpye 480 int ASC_DLLSPEC isInitialized(void)
13 jds 59 {
14     return value;
15     }
16    
17 johnpye 480 void ASC_DLLSPEC cleanup(void)
18 jds 59 {
19     value = FALSE;
20     }
21    

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