prepare for new release
[python_pycryptopp.git] / _doubleloadtester.cpp
1
2 #include <Python.h>
3
4 PyDoc_STRVAR(_doubleloadtester__doc__,
5              "_doubleloadtester -- just for testing ticket #9 per ticket #44\n\
6 ");
7
8 static PyMethodDef _doubleloadtester_functions[] = {
9     {NULL, NULL, 0, NULL}  /* sentinel */
10 };
11
12 /* from Crypto++ */
13 #ifdef DISABLE_EMBEDDED_CRYPTOPP
14 #include <cryptopp/cryptlib.h>
15 #else
16 #include <src-cryptopp/cryptlib.h>
17 #endif
18
19 #ifndef PyMODINIT_FUNC /* declarations for DLL import/export */
20 #define PyMODINIT_FUNC void
21 #endif
22 PyMODINIT_FUNC
23 init_doubleloadtester(void) {
24     const CryptoPP::NameValuePairs &my_nullNameValuePairs = CryptoPP::g_nullNameValuePairs;
25     PyObject *module;
26
27
28     printf("HELLO WORLD i'm doubleloadtester\n");
29     printf("%d\n", my_nullNameValuePairs.GetVoidValue("anything", typeid(0), NULL));
30     printf("GOODBYE i'm doubleloadtester\n");
31
32     module = Py_InitModule3("_doubleloadtester", _doubleloadtester_functions, _doubleloadtester__doc__);
33     if (!module)
34         return;
35 }