[C++-sig] how to expose the func like "print( char * str, ...

iceryeah iceryeah2000 at 163.com
Fri Feb 6 03:19:17 CET 2004


hello,
i have 2 problems:

problem 1:
i can expose the function like void a( void )
    def( "a", a );

but there is anthor function like this:
   void DebugMessage( char *msg,... );

i don't know how to expose this function.

problem 2:
module test

int num = 0;
void set( int a ) { num = a; }

then i expose set func , and do this in script:
import test
test.set( 10 )

and then in host app, i check the var num, it is not 10,why?

thanks very much.







More information about the Cplusplus-sig mailing list