example_0010.cpp
См. документацию.
1 #include <iostream>
2 #include <pyhrol.h>
3 
4 using namespace std;
5 using namespace pyhrol;
6 
7 void simple_function(Tuples &_args)
8 {
11 
12  cout
13  << __func__ << ": I am called" << endl
14  ;
15 
17 }
18 
19 static void __on_load() __attribute__ ((constructor));
20 
21 void __on_load()
22 {
23  PYHROL_REGISTER_FUNCTION_NO_ARGS(simple_function, "Most simple function, no args parsed, no values returned")
24 }
#define PYHROL_AFTER_BUILD_VALUE(container)
Definition: pyhrol_macro.h:18
#define PYHROL_AFTER_EXECUTE_DEFAULT(container)
Definition: pyhrol_macro.h:26
#define PYHROL_REGISTER_FUNCTION_NO_ARGS(function, help)
Definition: pyhrol_macro.h:40
static void __on_load() __attribute__((constructor))
#define PYHROL_AFTER_PARSE_TUPLE(container)
Definition: pyhrol_macro.h:9
void simple_function(Tuples &_args)
Definition: example_0010.cpp:7