summaryrefslogtreecommitdiff
path: root/test/controls/control_list.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-04-14 00:26:39 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-04-15 00:04:54 +0300
commitdf1d955d24d113771bd8fedc3bde7f230c059fb7 (patch)
tree5897cf7618d5419d6556829f3069675af7ea90cf /test/controls/control_list.cpp
parent93be96431a5cdacfe632c3cfb6763b90649bc590 (diff)
libcamera: log: Use compiler builtins to retrieve file and line number
Replace the __FILE__ and __LINE__ values passed to the _log() function with default parameters, taking their values from the __builtin_FILE() and __builtin_LINE() functions. This moves handling of the file and line from the preprocessor to the compiler, which is generally preferred as it increases type safety. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Tested-by: Sebastian Fricke <sebastian.fricke@posteo.net> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'test/controls/control_list.cpp')
0 files changed, 0 insertions, 0 deletions