Example #1
0
File: test.cs Project: mono/gert
	static void Main ()
	{
		//
		// Give a 'function pointer' of our static CreateWString function to the C library
		//
		SWIG_WStringDelegate wstringDelegate = new SWIG_WStringDelegate (CreateWString);
		SWIGRegisterUTF16StringCallback_libtest (wstringDelegate);

		//
		// Invoke a function in the C library that will use the above registered CreateWString function pointer.
		//
		my_test_func ();
	}
Example #2
0
File: test.cs Project: mono/gert
	public static extern void SWIGRegisterUTF16StringCallback_libtest (SWIG_WStringDelegate wstringDelegate);