inline alone does only define a function without a corresponding declaration. static solves this problem