Refactor MACRO with inline. Fix GCC warning
Refactor MACRO with inline. Fix GCC warning

Change-Id: Ie560e9cfcb7a4a54a81d3fadc064a88af7386499

IntelRealSense/librealsense,IntelRealSense/librealsense,IntelRealSense/librealsense,IntelRealSense/librealsense,IntelRealSense/librealsense,IntelRealSense/librealsense,IntelRealSense/librealsense,IntelRealSense/librealsense,IntelRealSense/librealsense