/[ascend]/trunk/pygtk/registry.cpp
ViewVC logotype

Contents of /trunk/pygtk/registry.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 869 - (show annotations) (download) (as text)
Wed Oct 4 14:03:46 2006 UTC (17 years, 2 months ago) by johnpye
File MIME type: text/x-c++src
File size: 325 byte(s)
'hello world' works from external python module, correctly hooks into 'browser' object.
1 #include "registry.h"
2
3 extern "C"{
4 #include <compiler/importhandler.h>
5 }
6
7 void
8 Registry::setInteger(const char *key, int val){
9 importhandler_setsharedpointer(key,(void *)val);
10 }
11
12 #ifdef ASCXX_USE_PYTHON
13
14 void
15 Registry::setPyObject(const char *key, PyObject *val){
16 importhandler_setsharedpointer(key,(void *)val);
17 }
18
19 #endif

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