Given the following function of prototype C:
void my_function(POINTER *p);
How can you use SWIG to create a Python shell that when called:
my_function() ---> he will call my_function(NULL);
my_function(None) ---> he will call my_function(NULL);
my_function(my_pointer) ---> he will call my_function(my_pointer);
source
share