Declare lines function inline to satisfy ODR
Merge branch 'add-lines-range' into dev