From 9128fe7d5b84a27831ae2535a16547bb0b9b7d8e Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 27 Sep 2021 22:35:24 +0800 Subject: add lua_c swig test --- tests/projects/swig/python_cpp/src/example.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/projects/swig/python_cpp') diff --git a/tests/projects/swig/python_cpp/src/example.cpp b/tests/projects/swig/python_cpp/src/example.cpp index 31c659bfa..b0ddc9c26 100644 --- a/tests/projects/swig/python_cpp/src/example.cpp +++ b/tests/projects/swig/python_cpp/src/example.cpp @@ -2,13 +2,13 @@ double My_variable = 3.0; /* Compute factorial of n */ int fact(int n) { - if (n <= 1) - return 1; - else - return n*fact(n-1); + if (n <= 1) + return 1; + else + return n*fact(n-1); } /* Compute n mod m */ int my_mod(int n, int m) { - return(n % m); + return(n % m); } -- cgit v1.3.1