scilab: add pointer conversion builtin functions swig_this & swig_ptr

This commit is contained in:
Simon Marchetto 2014-03-28 15:01:01 +01:00
commit 675c4cee0f
5 changed files with 97 additions and 7 deletions

View file

@ -0,0 +1,16 @@
%module scilab_pointer_conversion_functions
%inline %{
void* getNull() { return NULL; }
bool isNull(void *p) { return p == NULL; }
int foo = 3;
int *pfoo = &foo;
unsigned long getFooAddress() { return (unsigned long) pfoo; }
bool equalFooPointer(void *p) { return p == pfoo; }
%}