aboutsummaryrefslogtreecommitdiff
path: root/Examples/python/funcptr/example.c
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/python/funcptr/example.c')
-rw-r--r--Examples/python/funcptr/example.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Examples/python/funcptr/example.c b/Examples/python/funcptr/example.c
index 99583b72e..5c4a3dabf 100644
--- a/Examples/python/funcptr/example.c
+++ b/Examples/python/funcptr/example.c
@@ -15,3 +15,5 @@ int sub(int a, int b) {
int mul(int a, int b) {
return a*b;
}
+
+int (*funcvar)(int,int) = add;