David Blume's GitList
Repositories
testcode.git
Code
Commits
Branches
Tags
Search
Tree:
de73d20
Branches
Tags
c++11
main
start
testcode.git
my_lib
my_lib.cpp
Make ctags and cscope more compatible.
David Blume
commited
de73d20
at 2017-12-30 13:35:25
my_lib.cpp
Blame
History
Raw
#include <iostream> #include "../include/my_lib.hpp" using namespace std; namespace { int my_lib_helper_fn(int x) { cout << "The function " << __func__ << " with parameter " << x << " was called." << endl; return x + 1; } } my_lib_rect::my_lib_rect(int width, int height): width_(width), height_(height) {} int my_lib_rect::area() const { return width_ * height_; } int my_lib_fn() { cout << "The function " << __func__ << " was called." << endl; return 0; } int my_lib_fn(int x) { int a = my_lib_helper_fn(x); cout << "The function " << __PRETTY_FUNCTION__ << " with parameter " << x << " was called." << endl; return x + a; }